summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-10 00:42:46 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-10 11:43:04 +0200
commite3c732040b7eeb45efcd563d1c9abddf617ecd32 (patch)
tree0dbf09e1c11971f3ba60c24694a5ef729a61e1e3 /lib
parent0973969386d70ce9935d0c01860bea82d13d5663 (diff)
downloadnextcloud-server-e3c732040b7eeb45efcd563d1c9abddf617ecd32.tar.gz
nextcloud-server-e3c732040b7eeb45efcd563d1c9abddf617ecd32.zip
Make OC::loadfile and OC::loadapp protected, only used in OC::handleRequest
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/base.php b/lib/base.php
index 62d3918171f..025046c31db 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -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;