optimize code

remotes/origin/stable4
Georg Ehrke 13 years ago
parent 909282c81e
commit 2e85313701
  1. 1
      index.php
  2. 1
      lib/base.php

@ -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…
Cancel
Save