1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 01:54:12 +02:00

Prevent empty log files.

This commit is contained in:
Cameron
2013-05-15 16:07:10 -07:00
parent e9173717a7
commit f07b1a70ab
4 changed files with 23 additions and 7 deletions

View File

@@ -173,6 +173,7 @@ class e107plugin
$xml = e107::getXml();
$mes = e107::getMessage();
$needed = array();
$log = e107::getAdminLog();
if(!$plugVersions = e107::getConfig('core')->get('plug_installed'))
{
@@ -195,6 +196,7 @@ class e107plugin
$mes->addDebug("Plugin Update(s) Required");
return TRUE;
}
$needed[$path] = $data;
}
@@ -207,11 +209,19 @@ class e107plugin
return TRUE;
}
$mes->addDebug("Plugin: <strong>{$path}</strong> requires an update.");
// $mes->addDebug("Plugin: <strong>{$path}</strong> requires an update.");
// $log->flushMessages();
$needed[$path] = $data;
}
}
}
// Display debug and log to file.
foreach($needed as $path=>$tmp)
{
$log->addDebug("Plugin: <strong>{$path}</strong> requires an update.");
}
return count($needed) ? $needed : FALSE;