Changeset 21361
- Timestamp:
- Mar 8, 2013, 2:45:29 PM (12 years ago)
- Location:
- extensions/typetags
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/typetags/admin.php
r15477 r21361 242 242 $all_typetags = pwg_query($query); 243 243 244 while ($row = mysql_fetch_assoc($all_typetags))244 while ($row = pwg_db_fetch_assoc($all_typetags)) 245 245 { 246 246 $row['color_text'] = get_color_text($row['color']); -
extensions/typetags/admin/typetags_admin.tpl
r15477 r21361 123 123 <ul id="tt-{$typetag.id}" class="tt-container" style="box-shadow:inset 0 0 5px {$typetag.color};"> 124 124 <span class="buttons"> 125 <a href="{$typetag.u_edit}" title="{'edit'|@translate}"><img src="{$ themeconf.icon_dir}/edit.png" class="button" alt="{'edit'|@translate}"></a>126 <a href="{$typetag.u_delete}" title="{'delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');"><img src="{$ themeconf.icon_dir}/delete.png" class="button" alt="{'delete'|@translate}"></a>125 <a href="{$typetag.u_edit}" title="{'edit'|@translate}"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/edit_s.png" class="button" alt="{'edit'|@translate}"></a> 126 <a href="{$typetag.u_delete}" title="{'delete'|@translate}" onclick="return confirm('{'Are you sure?'|@translate}');"><img src="{$ROOT_URL}{$themeconf.admin_icon_dir}/delete.png" class="button" alt="{'delete'|@translate}"></a> 127 127 </span> 128 128 <h5 style="background-color:{$typetag.color};color:{$typetag.color_text};">{$typetag.name}</h5> -
extensions/typetags/main.inc.php
r15733 r21361 17 17 18 18 19 include (typetags_PATH . 'typetags.php');19 include_once(typetags_PATH . 'typetags.php'); 20 20 $conf['TypeTags'] = unserialize($conf['TypeTags']); 21 21 -
extensions/typetags/maintain.inc.php
r15149 r21361 14 14 15 15 $result = pwg_query('SHOW TABLES LIKE "' . $prefixeTable .'typetags"'); 16 if (! mysql_fetch_row($result))16 if (!pwg_db_num_rows($result)) 17 17 { 18 18 $query = ' -
extensions/typetags/typetags.php
r15646 r21361 18 18 INNER JOIN '.TAGS_TABLE.' AS t 19 19 ON t.id_typetags = tt.id 20 WHERE t.name = "'. mysql_real_escape_string($tag).'"20 WHERE t.name = "'.pwg_db_real_escape_string($tag).'" 21 21 ;';; 22 22 list($color) = pwg_db_fetch_row(pwg_query($query));
Note: See TracChangeset
for help on using the changeset viewer.