1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Optimization

This commit is contained in:
Cameron
2017-01-22 14:05:03 -08:00
parent d37fe781ac
commit a29cd6db65

View File

@@ -277,11 +277,11 @@ class e107plugin
foreach($plugVersions as $path=>$version) foreach($plugVersions as $path=>$version)
{ {
$fullPath = e_PLUGIN.$path."/plugin.xml"; $fullPath = e_PLUGIN.$path."/plugin.xml";
if(is_file(e_PLUGIN.$path."/plugin.xml")) if(file_exists(e_PLUGIN.$path."/plugin.xml"))
{ {
$data = $xml->loadXMLfile($fullPath, true); $data = $xml->loadXMLfile($fullPath, true);
if(!in_array($path, $this->core_plugins)) // check non-core plugins for sql file changes. if(!isset($this->core_plugins[$path])) // check non-core plugins for sql file changes.
{ {
$dbv->errors = array(); $dbv->errors = array();
$dbv->compare($path); $dbv->compare($path);