mirror of
https://github.com/e107inc/e107.git
synced 2025-07-24 08:22:07 +02:00
Closes #4447 - Add extra check for presence of log plugin
Avoids fatal error when prefs are still stored for some reason.
This commit is contained in:
@@ -19,6 +19,17 @@ if (isset($pref['statActivate']) && $pref['statActivate'] == true)
|
||||
{
|
||||
//$pageName = preg_replace("/(\?.*)|(\_.*)|(\.php)/", "", basename (e_SELF));
|
||||
|
||||
if(!file_exists(e_PLUGIN."log/consolidate.php"))
|
||||
{
|
||||
if(ADMIN)
|
||||
{
|
||||
$text .= "<span class='smalltext'>".COUNTER_L8."</span>";
|
||||
}
|
||||
|
||||
$ns->tablerender(COUNTER_L7, $text, 'counter');
|
||||
return;
|
||||
}
|
||||
|
||||
require_once(e_PLUGIN."log/consolidate.php");
|
||||
$logObj = new logConsolidate;
|
||||
|
||||
|
Reference in New Issue
Block a user