Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -28,7 +28,7 @@ class cms_hook_Lang extends _HOOK_CLASS_
|
||||
\IPS\Application::applications();
|
||||
|
||||
/* Add in the database specific language bits and bobs */
|
||||
foreach( \IPS\cms\Databases::getDatabaseDataFromStore() as $database )
|
||||
foreach( \IPS\cms\Databases::getStore() as $database )
|
||||
{
|
||||
$this->words['__indefart_content_record_comments_title_' . $database['database_id'] ] = $this->addToStack( '__indefart_content_record_comments_title' );
|
||||
$this->words['__indefart_content_record_reviews_title_' . $database['database_id'] ] = $this->addToStack( '__indefart_content_record_reviews_title' );
|
||||
@@ -66,7 +66,7 @@ class cms_hook_Lang extends _HOOK_CLASS_
|
||||
* @param bool $upper ucfirst string
|
||||
* @return string
|
||||
*/
|
||||
public function recordWord( $number = 2, $upper = FALSE, $databaseId )
|
||||
public function recordWord( $number, $upper, $databaseId )
|
||||
{
|
||||
$case = $upper ? 'u' : 'l';
|
||||
return $number == 1 ? $this->addToStack("content_db_lang_s{$case}_{$databaseId}") : $this->addToStack("content_db_lang_p{$case}_{$databaseId}");
|
||||
|
||||
Reference in new issue
Block a user