optimize code
This commit is contained in:
parent
909282c81e
commit
2e85313701
|
@ -57,6 +57,7 @@ elseif(OC_User::isLoggedIn()) {
|
|||
exit();
|
||||
}
|
||||
else {
|
||||
OC_App::loadApps();
|
||||
if(is_null(OC::$REQUESTEDFILE)){
|
||||
OC::loadapp();
|
||||
}else{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue