optimize code

This commit is contained in:
Georg Ehrke 2012-04-19 22:26:36 +02:00
parent 909282c81e
commit 2e85313701
2 changed files with 1 additions and 1 deletions

View File

@ -57,6 +57,7 @@ elseif(OC_User::isLoggedIn()) {
exit();
}
else {
OC_App::loadApps();
if(is_null(OC::$REQUESTEDFILE)){
OC::loadapp();
}else{

View File

@ -274,7 +274,6 @@ class OC{
public static function loadapp(){
if(file_exists(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP)){
OC_App::loadApps();
require_once(OC::$APPSROOT . '/apps/' . OC::$REQUESTEDAPP . '/index.php');
}else{
trigger_error('The requested App was not found.', E_USER_ERROR);