Changeset 25817 for extensions/AdminTools/include/events.inc.php
- Timestamp:
- Dec 7, 2013, 6:43:09 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/AdminTools/include/events.inc.php
r25791 r25817 81 81 ); 82 82 83 // gets tags 83 // gets tags (full available list is loaded in ajax) 84 84 $query = ' 85 85 SELECT id, name … … 89 89 ;'; 90 90 $tag_selection = get_taglist($query); 91 92 $query = '93 SELECT id, name94 FROM '.TAGS_TABLE.'95 ;';96 $tags = get_taglist($query, false);97 91 98 92 $tpl_vars['QUICK_EDIT'] = array( … … 105 99 'date_creation_time' => substr($picture['current']['date_creation'], 11, 5), 106 100 'tag_selection' => $tag_selection, 107 'tags' => $tags,108 101 ); 109 102 } … … 146 139 $tpl_vars['QUICK_EDIT']['img'] = DerivativeImage::get_one(IMG_SQUARE, $image_infos)->get_url(); 147 140 } 148 }149 150 151 // get users152 $query = '153 SELECT154 '.$conf['user_fields']['id'].' AS id,155 '.$conf['user_fields']['username'].' AS username156 FROM '.USERS_TABLE.'157 ORDER BY CONVERT('.$conf['user_fields']['username'].', CHAR)158 ;';159 $tpl_vars['USERS'] = simple_hash_from_query($query, 'id', 'username');160 161 // get themes162 include_once(PHPWG_ROOT_PATH.'admin/include/themes.class.php');163 $themes = new themes();164 foreach (array_keys($themes->db_themes_by_id) as $theme)165 {166 if (!empty($theme))167 {168 $tpl_vars['THEMES'][$theme] = $theme;169 }170 }171 172 // get languages173 foreach (get_languages() as $code => $name)174 {175 $tpl_vars['LANGS'][$code] = $name;176 141 } 177 142
Note: See TracChangeset
for help on using the changeset viewer.