diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-11-01 03:06:20 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-11-01 03:06:20 +0100 |
commit | b0ae67d5c5af56b6174815795360a7c5a4026e57 (patch) | |
tree | 88985947a5934319de6bf81b122ecabd503abe32 /core/ajax | |
parent | 290d0714dfd4aae8e2c09194affd738de3df88f3 (diff) | |
download | nextcloud-server-b0ae67d5c5af56b6174815795360a7c5a4026e57.tar.gz nextcloud-server-b0ae67d5c5af56b6174815795360a7c5a4026e57.zip |
Update vcategories ajax scripts.
Diffstat (limited to 'core/ajax')
-rw-r--r-- | core/ajax/vcategories/addToFavorites.php | 2 | ||||
-rw-r--r-- | core/ajax/vcategories/favorites.php | 3 | ||||
-rw-r--r-- | 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 f330d19c8a4..52f62d5fc6b 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 b72fc7a9fee..20accea61cd 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 f779df48f21..ba6e95c2497 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(); |