Remove unused RUNTIME_NOSETUPFS var

This commit is contained in:
Bart Visscher 2012-08-08 17:13:20 +02:00
parent 05648dac61
commit 7522a23693
13 changed files with 2 additions and 44 deletions

View File

@ -21,11 +21,6 @@
* *
*/ */
//no apps or filesystem
$RUNTIME_NOSETUPFS=true;
// Check if we are a user // Check if we are a user
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck(); OCP\JSON::callCheck();
@ -34,4 +29,4 @@ OCP\JSON::checkAppEnabled('bookmarks');
require_once(OC_App::getAppPath('bookmarks').'/bookmarksHelper.php'); require_once(OC_App::getAppPath('bookmarks').'/bookmarksHelper.php');
$id = addBookmark($_POST['url'], $_POST['title'], $_POST['tags']); $id = addBookmark($_POST['url'], $_POST['title'], $_POST['tags']);
OCP\JSON::success(array('data' => $id)); OCP\JSON::success(array('data' => $id));

View File

@ -21,11 +21,6 @@
* *
*/ */
//no apps or filesystem
$RUNTIME_NOSETUPFS=true;
// Check if we are a user // Check if we are a user
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck(); OCP\JSON::callCheck();

View File

@ -21,11 +21,6 @@
* *
*/ */
//no apps or filesystem
$RUNTIME_NOSETUPFS=true;
// Check if we are a user // Check if we are a user
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::callCheck(); OCP\JSON::callCheck();

View File

@ -21,11 +21,6 @@
* *
*/ */
//no apps or filesystem
$RUNTIME_NOSETUPFS=true;
// Check if we are a user // Check if we are a user
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('bookmarks'); OCP\JSON::checkAppEnabled('bookmarks');

View File

@ -22,11 +22,6 @@
* *
*/ */
//no apps or filesystem
$RUNTIME_NOSETUPFS=true;
// Check if we are a user // Check if we are a user
OCP\JSON::checkLoggedIn(); OCP\JSON::checkLoggedIn();
OCP\JSON::checkAppEnabled('bookmarks'); OCP\JSON::checkAppEnabled('bookmarks');

View File

@ -1,6 +1,4 @@
<?php <?php
$RUNTIME_NOSETUPFS=true; //don't setup the fs yet
// only need authentication apps // only need authentication apps
$RUNTIME_APPTYPES=array('authentication'); $RUNTIME_APPTYPES=array('authentication');
OC_App::loadApps($RUNTIME_APPTYPES); OC_App::loadApps($RUNTIME_APPTYPES);

View File

@ -23,9 +23,8 @@
header('Content-type: text/html; charset=UTF-8') ; header('Content-type: text/html; charset=UTF-8') ;
//no apps or filesystem //no apps
$RUNTIME_NOAPPS=true; $RUNTIME_NOAPPS=true;
$RUNTIME_NOSETUPFS=true;
OCP\JSON::checkAppEnabled('media'); OCP\JSON::checkAppEnabled('media');

View File

@ -25,10 +25,6 @@
* *
*/ */
// Do not load FS ...
$RUNTIME_NOSETUPFS = true;
OCP\App::checkAppEnabled('remoteStorage'); OCP\App::checkAppEnabled('remoteStorage');
require_once('remoteStorage/lib_remoteStorage.php'); require_once('remoteStorage/lib_remoteStorage.php');

View File

@ -27,9 +27,6 @@
header("X-Frame-Options: Sameorigin"); header("X-Frame-Options: Sameorigin");
// Do not load FS ...
$RUNTIME_NOSETUPFS = true;
OCP\App::checkAppEnabled('remoteStorage'); OCP\App::checkAppEnabled('remoteStorage');
require_once('Sabre/autoload.php'); require_once('Sabre/autoload.php');
require_once('lib_remoteStorage.php'); require_once('lib_remoteStorage.php');

View File

@ -23,8 +23,6 @@
* *
*/ */
// Do not load FS ...
$RUNTIME_NOSETUPFS = true;
// only need filesystem apps // only need filesystem apps
$RUNTIME_APPTYPES=array('filesystem','authentication'); $RUNTIME_APPTYPES=array('filesystem','authentication');
require_once('../lib/base.php'); require_once('../lib/base.php');

View File

@ -401,9 +401,6 @@ class OC{
} }
// define runtime variables - unless this already has been done // define runtime variables - unless this already has been done
if( !isset( $RUNTIME_NOSETUPFS )){
$RUNTIME_NOSETUPFS = false;
}
if( !isset( $RUNTIME_NOAPPS )){ if( !isset( $RUNTIME_NOAPPS )){
$RUNTIME_NOAPPS = false; $RUNTIME_NOAPPS = false;
} }

View File

@ -1,5 +1,4 @@
<?php <?php
$RUNTIME_NOSETUPFS = true;
$RUNTIME_NOAPPS = TRUE; $RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php'); require_once('lib/base.php');
$file = OCP\CONFIG::getAppValue('core', 'public_' . strip_tags($_GET['service'])); $file = OCP\CONFIG::getAppValue('core', 'public_' . strip_tags($_GET['service']));

View File

@ -1,5 +1,4 @@
<?php <?php
$RUNTIME_NOSETUPFS = true;
$RUNTIME_NOAPPS = TRUE; $RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php'); require_once('lib/base.php');
$path_info = OC_Request::getPathInfo(); $path_info = OC_Request::getPathInfo();