From ea2a45f19df8bcdff56752904d07c2af2fb5b8d7 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Tue, 19 Aug 2014 15:16:49 +0200 Subject: [PATCH] Remove loadAppScriptFile --- lib/base.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/lib/base.php b/lib/base.php index 1f3c616fb1..196ca74f52 100644 --- a/lib/base.php +++ b/lib/base.php @@ -789,32 +789,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'])) {