diff options
-rw-r--r-- | core/ajax/update.php | 1 | ||||
-rw-r--r-- | core/routes.php | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php index 698614c975f..70696e98eef 100644 --- a/core/ajax/update.php +++ b/core/ajax/update.php @@ -1,6 +1,5 @@ <?php set_time_limit(0); -require_once '../../lib/base.php'; if (OC::checkUpgrade(false)) { $l = new \OC_L10N('core'); diff --git a/core/routes.php b/core/routes.php index cf74521a746..ff79c450508 100644 --- a/core/routes.php +++ b/core/routes.php @@ -80,7 +80,8 @@ $this->create('core_ajax_preview', '/core/preview') ->actionInclude('core/ajax/preview.php'); $this->create('core_ajax_preview', '/core/preview.png') ->actionInclude('core/ajax/preview.php'); - +$this->create('core_ajax_update', '/core/ajax/update.php') + ->actionInclude('core/ajax/update.php'); // Avatar routes $this->create('core_avatar_get_tmp', '/avatar/tmp') ->get() |