Skip to content
Snippets Groups Projects
Commit e3c73204 authored by Bart Visscher's avatar Bart Visscher
Browse files

Make OC::loadfile and OC::loadapp protected, only used in OC::handleRequest

parent 09739693
No related branches found
No related tags found
No related merge requests found
......@@ -257,7 +257,7 @@ class OC{
session_start();
}
public static function loadapp() {
protected static function loadapp() {
if(file_exists(OC_App::getAppPath(OC::$REQUESTEDAPP) . '/index.php')) {
require_once(OC_App::getAppPath(OC::$REQUESTEDAPP) . '/index.php');
}
......@@ -266,7 +266,7 @@ class OC{
}
}
public static function loadfile() {
protected static function loadfile() {
$app = OC::$REQUESTEDAPP;
$file = OC::$REQUESTEDFILE;
$app_path = OC_App::getAppPath($app);
......@@ -435,7 +435,7 @@ class OC{
}
if(!OC_User::isLoggedIn() && substr(OC::$REQUESTEDFILE,-3) == 'css') {
OC_App::loadApps();
OC::loadfile();
self::loadfile();
return true;
}
// Someone is logged in :
......@@ -446,9 +446,9 @@ class OC{
header("Location: ".OC::$WEBROOT.'/');
}else{
if(is_null(OC::$REQUESTEDFILE)) {
OC::loadapp();
self::loadapp();
}else{
OC::loadfile();
self::loadfile();
}
}
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment