1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

PHPDoc fixes.

This commit is contained in:
Cameron
2019-01-31 14:35:57 -08:00
parent cbafa7e852
commit 59eed2752c
4 changed files with 39 additions and 6 deletions

View File

@@ -1070,10 +1070,12 @@ if (!class_exists('e107table', false))
if(class_exists($this->adminThemeClass) && ($this->frontend == false))
{
$thm = new $this->adminThemeClass();
/** @var e_theme_render $thm */
$thm = new $this->adminThemeClass();
}
elseif(class_exists($this->themeClass)) // disabled at the moment.
{
/** @var e_theme_render $thm */
$thm = new $this->themeClass();
}
@@ -1468,7 +1470,14 @@ elseif (!in_array('lan_'.e_PAGE,$exclude_lan) && !$isPluginDir)
}
*/
if ($pref['anon_post'] ? define('ANON', true) : define('ANON', false));
if ($pref['anon_post'])
{
define('ANON', true);
}
else
{
define('ANON', false);
}
if (empty($pref['newsposts']) ? define('ITEMVIEW', 15) : define('ITEMVIEW', $pref['newsposts']));