. * */ //no apps or filesystem $RUNTIME_NOSETUPFS=true; // Check if we are a user OCP\JSON::checkLoggedIn(); OCP\JSON::checkAppEnabled('bookmarks'); if(isset($_POST['old_name']) && isset($_POST['new_name']) && $_POST['new_name'] != '') { OC_Bookmarks_Bookmarks::renameTag($_POST['old_name'], $_POST['new_name']); OCP\JSON::success(); exit(); } OC_JSON::error(); exit();