Changeset 6818 for extensions/user_tags/include/t4u_admin_action.inc.php
- Timestamp:
- Aug 29, 2010, 6:52:52 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/user_tags/include/t4u_admin_action.inc.php
r6813 r6818 25 25 26 26 if (!empty($_GET['action']) && ($_GET['action']=='add') 27 && !empty($_POST['tags']) && $me->getPermission('add')) {27 && isset($_POST['tags']) && $me->getPermission('add')) { 28 28 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 29 29 30 if (empty($_POST['tags'])) { 31 $_POST['tags'] = array(); 32 } 30 33 $tag_ids = get_fckb_tag_ids($_POST['tags']); 31 34 set_tags($tag_ids, $_POST['image_id']); … … 33 36 if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) { 34 37 header("Content-Type: application/json"); 38 $message['info'] = l10n('Tags updated'); 35 39 36 $message['info'] = l10n('Tags updated');37 40 echo json_encode($message); 41 Log::getInstance()->debug('message envoyé'); 38 42 exit(); 39 43 } else {
Note: See TracChangeset
for help on using the changeset viewer.