1
0
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:
Moc
2021-12-22 14:43:51 +01:00
parent f426ffc729
commit c0c78c46d0

View File

@@ -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;