Changeset 21361


Ignore:
Timestamp:
03/08/13 14:45:29 (6 years ago)
Author:
mistic100
Message:

use pwg_db functions, fix icons

Location:
extensions/typetags
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/typetags/admin.php

    r15477 r21361  
    242242$all_typetags = pwg_query($query); 
    243243 
    244 while ($row = mysql_fetch_assoc($all_typetags)) 
     244while ($row = pwg_db_fetch_assoc($all_typetags)) 
    245245{ 
    246246  $row['color_text'] = get_color_text($row['color']); 
  • extensions/typetags/admin/typetags_admin.tpl

    r15477 r21361  
    123123      <ul id="tt-{$typetag.id}" class="tt-container" style="box-shadow:inset 0 0 5px {$typetag.color};"> 
    124124        <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> 
    127127        </span> 
    128128        <h5 style="background-color:{$typetag.color};color:{$typetag.color_text};">{$typetag.name}</h5> 
  • extensions/typetags/main.inc.php

    r15733 r21361  
    1717 
    1818 
    19 include(typetags_PATH . 'typetags.php'); 
     19include_once(typetags_PATH . 'typetags.php'); 
    2020$conf['TypeTags'] = unserialize($conf['TypeTags']); 
    2121 
  • extensions/typetags/maintain.inc.php

    r15149 r21361  
    1414 
    1515  $result = pwg_query('SHOW TABLES LIKE "' . $prefixeTable .'typetags"'); 
    16   if (!mysql_fetch_row($result)) 
     16  if (!pwg_db_num_rows($result)) 
    1717  { 
    1818    $query = ' 
  • extensions/typetags/typetags.php

    r15646 r21361  
    1818    INNER JOIN '.TAGS_TABLE.' AS t 
    1919      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).'" 
    2121;';; 
    2222  list($color) = pwg_db_fetch_row(pwg_query($query)); 
Note: See TracChangeset for help on using the changeset viewer.