diff options
author | blizzz <blizzz@owncloud.com> | 2014-08-21 19:59:31 +0200 |
---|---|---|
committer | blizzz <blizzz@owncloud.com> | 2014-08-21 19:59:31 +0200 |
commit | 52d5429768acdb87b2dc2efedc89eb4ad0d29139 (patch) | |
tree | 6ab5900a70361bbf13633e1b1ca7310e08011ee5 /lib/base.php | |
parent | 9c980954f4cbb0ff023f5065d64b3eb931914be0 (diff) | |
parent | ab12bd292d1ac44db427332c265fa58bcf4c3cb4 (diff) | |
download | nextcloud-server-52d5429768acdb87b2dc2efedc89eb4ad0d29139.tar.gz nextcloud-server-52d5429768acdb87b2dc2efedc89eb4ad0d29139.zip |
Merge pull request #10522 from owncloud/removeLoadAppScript
Remove loadAppScriptFile
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/base.php b/lib/base.php index f2c66222ef3..759a4177031 100644 --- a/lib/base.php +++ b/lib/base.php @@ -801,32 +801,6 @@ class OC { } } - /** - * Load a PHP file belonging to the specified application - * @param array $param The application and file to load - * @return bool Whether the file has been found (will return 404 and false if not) - * @deprecated This function will be removed in ownCloud 8 - use proper routing instead - * @param $param - * @return bool Whether the file has been found (will return 404 and false if not) - */ - public static function loadAppScriptFile($param) { - OC_App::loadApps(); - $app = $param['app']; - $file = $param['file']; - $app_path = OC_App::getAppPath($app); - $file = $app_path . '/' . $file; - - if (OC_App::isEnabled($app) && $app_path !== false && OC_Helper::issubdirectory($file, $app_path)) { - unset($app, $app_path); - if (file_exists($file)) { - require_once $file; - return true; - } - } - header('HTTP/1.0 404 Not Found'); - return false; - } - protected static function handleAuthHeaders() { //copy http auth headers for apache+php-fcgid work around if (isset($_SERVER['HTTP_XAUTHORIZATION']) && !isset($_SERVER['HTTP_AUTHORIZATION'])) { |