fix loading of plugins

This commit is contained in:
Robin Appelman 2010-06-11 16:54:57 +02:00
parent 3c19e66151
commit df149217b9

View file

@ -128,7 +128,7 @@ if(OC_USER::isLoggedIn()){
// load plugins // load plugins
$CONFIG_LOADPLUGINS=''; $CONFIG_LOADPLUGINS='';
$plugins=explode(' ',$CONFIG_LOADPLUGINS); $plugins=explode(' ',$CONFIG_LOADPLUGINS);
if(isset($plugins[0]['url'])) foreach($plugins as $plugin) require_once('plugins/'.$plugin.'/lib_'.$plugin.'.php'); if(isset($plugins[0]['url'])) foreach($plugins as $plugin) oc_require_once('plugins/'.$plugin.'/lib_'.$plugin.'.php');
// check if the server is correctly configured for ownCloud // check if the server is correctly configured for ownCloud