Don't log error if no plugin config is found in global directories

pull/163/head
Thomas Bruederli 11 years ago
parent 8fc49e51a4
commit c5f6352710

@ -133,15 +133,8 @@ abstract class rcube_plugin
return false; return false;
} }
else if (!$is_local) { else if (!$is_local) {
$fname = $this->ID . '.inc.php';
// Search plugin_name.inc.php file in any configured path // Search plugin_name.inc.php file in any configured path
if (!$rcube->config->load_from_file($fname)) { return $rcube->config->load_from_file($this->ID . '.inc.php');
rcube::raise_error(array(
'code' => 527, 'type' => 'php',
'file' => __FILE__, 'line' => __LINE__,
'message' => "Failed to load $fname config file from any configured path"), true, false);
return false;
}
} }
return true; return true;

Loading…
Cancel
Save