Update vcategories ajax scripts.

This commit is contained in:
Thomas Tanghus 2012-11-01 03:06:20 +01:00
parent 290d0714df
commit b0ae67d5c5
3 changed files with 2 additions and 9 deletions

View File

@ -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();

View File

@ -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)) {

View File

@ -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();