Browse Source

killing some more calls to OC_App::loadApps(); - because we load all apps in handleRequest()

tags/v7.0.0alpha2
Thomas Müller 10 years ago
parent
commit
f9279ac77a

+ 0
- 1
apps/files/command/scan.php View File

@@ -58,7 +58,6 @@ class Scan extends Command {

protected function execute(InputInterface $input, OutputInterface $output) {
if ($input->getOption('all')) {
\OC_App::loadApps('authentication');
$users = $this->userManager->search('');
} else {
$users = $input->getArgument('user_id');

+ 0
- 1
core/ajax/share.php View File

@@ -21,7 +21,6 @@

OC_JSON::checkLoggedIn();
OCP\JSON::callCheck();
OC_App::loadApps();

$defaults = new \OCP\Defaults();


+ 0
- 1
search/ajax/search.php View File

@@ -23,7 +23,6 @@

// Check if we are a user
OC_JSON::checkLoggedIn();
OC_App::loadApps();

$query=(isset($_GET['query']))?$_GET['query']:'';
if($query) {

+ 0
- 1
settings/admin.php View File

@@ -6,7 +6,6 @@
*/

OC_Util::checkAdminUser();
OC_App::loadApps();

OC_Util::addStyle( "settings", "settings" );
OC_Util::addScript( "settings", "admin" );

+ 0
- 1
settings/apps.php View File

@@ -22,7 +22,6 @@
*/

OC_Util::checkAdminUser();
OC_App::loadApps();

// Load the files we need
OC_Util::addStyle( "settings", "settings" );

+ 0
- 6
settings/changepassword/controller.php View File

@@ -8,9 +8,6 @@ class Controller {
\OC_JSON::callCheck();
\OC_JSON::checkLoggedIn();

// Manually load apps to ensure hooks work correctly (workaround for issue 1503)
\OC_App::loadApps();

$username = \OC_User::getUser();
$password = isset($_POST['personal-password']) ? $_POST['personal-password'] : null;
$oldPassword = isset($_POST['oldpassword']) ? $_POST['oldpassword'] : '';
@@ -32,9 +29,6 @@ class Controller {
\OC_JSON::callCheck();
\OC_JSON::checkLoggedIn();

// Manually load apps to ensure hooks work correctly (workaround for issue 1503)
\OC_App::loadApps();

if (isset($_POST['username'])) {
$username = $_POST['username'];
} else {

+ 0
- 1
settings/help.php View File

@@ -6,7 +6,6 @@
*/

OC_Util::checkLoggedIn();
OC_App::loadApps();

// Load the files we need
OC_Util::addStyle( "settings", "settings" );

+ 0
- 1
settings/personal.php View File

@@ -6,7 +6,6 @@
*/

OC_Util::checkLoggedIn();
OC_App::loadApps();

$defaults = new OC_Defaults(); // initialize themable default strings and urls


+ 0
- 1
settings/settings.php View File

@@ -6,7 +6,6 @@
*/

OC_Util::checkLoggedIn();
OC_App::loadApps();

OC_Util::addStyle( 'settings', 'settings' );
OC_App::setActiveNavigationEntry( 'settings' );

+ 0
- 1
settings/users.php View File

@@ -6,7 +6,6 @@
*/

OC_Util::checkSubAdminUser();
OC_App::loadApps();

// We have some javascript foo!
OC_Util::addScript( 'settings', 'users' );

Loading…
Cancel
Save