Update vcategories ajax scripts.
This commit is contained in:
parent
290d0714df
commit
b0ae67d5c5
|
@ -14,8 +14,6 @@ function debug($msg) {
|
||||||
OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG);
|
OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once '../../../lib/base.php';
|
|
||||||
|
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,9 @@ function debug($msg) {
|
||||||
OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG);
|
OC_Log::write('core', 'ajax/vcategories/addToFavorites.php: '.$msg, OC_Log::DEBUG);
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once '../../../lib/base.php';
|
|
||||||
|
|
||||||
OCP\JSON::checkLoggedIn();
|
OCP\JSON::checkLoggedIn();
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
|
|
||||||
|
|
||||||
$type = isset($_GET['type']) ? $_GET['type'] : null;
|
$type = isset($_GET['type']) ? $_GET['type'] : null;
|
||||||
|
|
||||||
if(is_null($type)) {
|
if(is_null($type)) {
|
||||||
|
|
|
@ -7,15 +7,13 @@
|
||||||
*/
|
*/
|
||||||
function bailOut($msg) {
|
function bailOut($msg) {
|
||||||
OC_JSON::error(array('data' => array('message' => $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();
|
exit();
|
||||||
}
|
}
|
||||||
function debug($msg) {
|
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::checkLoggedIn();
|
||||||
OCP\JSON::callCheck();
|
OCP\JSON::callCheck();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue