diff options
author | plegall <plg@piwigo.org> | 2010-03-19 13:15:02 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-19 13:15:02 +0000 |
commit | 3f8d84cbe690d94871f15957b3a233e6d23b5be3 (patch) | |
tree | 95f6d3d9b66c52e85a3ade33ea2ef6c5e6376e76 /admin.php | |
parent | 3a076f460d89628e75a7e9e693be0c3962ac2c39 (diff) |
feature 724: bug fixed on element_set_unit for FCKB, better use
$("#tags-123, #tags-456") than $(".tags") to apply FCKB widget on
the select box.
Use a dedicated function to return the tag list, formatted for FCKB.
git-svn-id: http://piwigo.org/svn/trunk@5189 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 18 |
1 files changed, 3 insertions, 15 deletions
@@ -39,23 +39,11 @@ if (isset($_GET['fckb_tags'])) { $query = ' SELECT - id, - name + id AS tag_id, + name AS tag_name FROM '.TAGS_TABLE.' ;'; - $result = pwg_query($query); - $taglist = array(); - while ($row = pwg_db_fetch_assoc($result)) - { - array_push( - $taglist, - array( - 'caption' => $row['name'], - 'value' => '~~'.$row['id'].'~~', - ) - ); - } - echo json_encode($taglist); + echo json_encode(get_fckb_taglist($query)); exit(); } |