From b0ae67d5c5af56b6174815795360a7c5a4026e57 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 1 Nov 2012 03:06:20 +0100 Subject: [PATCH] Update vcategories ajax scripts. --- core/ajax/vcategories/addToFavorites.php | 2 -- core/ajax/vcategories/favorites.php | 3 --- core/ajax/vcategories/removeFromFavorites.php | 6 ++---- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/core/ajax/vcategories/addToFavorites.php b/core/ajax/vcategories/addToFavorites.php index f330d19c8a..52f62d5fc6 100644 --- a/core/ajax/vcategories/addToFavorites.php +++ b/core/ajax/vcategories/addToFavorites.php @@ -14,8 +14,6 @@ function debug($msg) { OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG); } -require_once '../../../lib/base.php'; - OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); diff --git a/core/ajax/vcategories/favorites.php b/core/ajax/vcategories/favorites.php index b72fc7a9fe..20accea61c 100644 --- a/core/ajax/vcategories/favorites.php +++ b/core/ajax/vcategories/favorites.php @@ -14,12 +14,9 @@ function debug($msg) { OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG); } -require_once '../../../lib/base.php'; - OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck(); - $type = isset($_GET['type']) ? $_GET['type'] : null; if(is_null($type)) { diff --git a/core/ajax/vcategories/removeFromFavorites.php b/core/ajax/vcategories/removeFromFavorites.php index f779df48f2..ba6e95c249 100644 --- a/core/ajax/vcategories/removeFromFavorites.php +++ b/core/ajax/vcategories/removeFromFavorites.php @@ -7,15 +7,13 @@ */ function bailOut($msg) { OC_JSON::error(array('data' => array('message' => $msg))); - OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG); + OC_Log::write('core', 'ajax/vcategories/removeFromFavorites.php: '.$msg, OC_Log::DEBUG); exit(); } function debug($msg) { - OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG); + OC_Log::write('core', 'ajax/vcategories/removeFromFavorites.php: '.$msg, OC_Log::DEBUG); } -require_once '../../../lib/base.php'; - OCP\JSON::checkLoggedIn(); OCP\JSON::callCheck();