1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-03 03:13:34 +02:00

Code cleanup

This commit is contained in:
Cameron
2020-12-18 19:55:12 -08:00
parent 2b8a3cff60
commit 5b82c292b1
80 changed files with 1888 additions and 1731 deletions

View File

@@ -45,10 +45,10 @@ class news_related // include plugin-folder in the name.
return $items;
}
elseif(ADMIN)
{
//elseif(ADMIN)
//{
// return array(array('title'=>$query,'url'=>''));
}
//}
}
}

View File

@@ -1495,8 +1495,8 @@ class news_front
{
if(!$this->action)
{
//if(!$this->action)
// {
// Removed, themes should use {FEATUREBOX} shortcode instead
// if (isset($this->pref['fb_active']))
// {
@@ -1508,7 +1508,7 @@ class news_front
// require_once(e_PLUGIN."newforumposts_main/newforumposts_main.php");
// }
}
// }
//news archive
if ($this->action != "item" && $this->action != 'list' && $this->pref['newsposts_archive'])
@@ -1524,10 +1524,10 @@ class news_front
{
$newsCachedPage = $newsCachedPage.$newsarchive;
}
else
{
//else
// {
// $this->show_newsarchive($newsAr,$interval);
}
// }
}
}
@@ -1567,8 +1567,8 @@ class news_front
$action = $currentNewsAction;
if(!$action)
{
//if(!$action)
// {
// Removed, themes should use {FEATUREBOX} shortcode instead
// if (isset($this->pref['fb_active'])){ // --->feature box
// require_once(e_PLUGIN."featurebox/featurebox.php");
@@ -1578,7 +1578,7 @@ class news_front
// if (isset($this->pref['nfp_display']) && $this->pref['nfp_display'] == 1){
// require_once(e_PLUGIN."newforumposts_main/newforumposts_main.php");
// }
}
// }
/**
* @deprecated - for BC only. May be removed in future without further notice.