Changeset 19919


Ignore:
Timestamp:
01/06/13 18:59:21 (7 years ago)
Author:
mistic100
Message:

use "pwg_db_" functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AdditionalPages/trunk/maintain.inc.php

    r12658 r19919  
    77  $query = 'SHOW TABLES LIKE "' . $prefixeTable . 'additionalpages"'; 
    88  $result = pwg_query($query); 
    9   if (!mysql_fetch_row($result)) 
     9  if (!pwg_db_fetch_row($result)) 
    1010  { 
    1111    $query = 'CREATE TABLE ' . $prefixeTable . 'additionalpages ( 
     
    2323INDEX (pos) , 
    2424INDEX (lang)) 
    25 DEFAULT CHARACTER SET utf8'; 
    26     if ('mysql' == $conf['dblayer']) 
    27     { 
    28       $query .= ' ENGINE=MYISAM'; 
    29     } 
     25DEFAULT CHARACTER SET utf8 ENGINE=MYISAM'; 
    3026    pwg_query($query.';'); 
    3127  } 
     
    5450 
    5551  $q = pwg_query('SHOW COLUMNS FROM ' . HISTORY_TABLE . ' LIKE "section"'); 
    56   $section = mysql_fetch_array($q); 
     52  $section = pwg_db_fetch_assoc($q); 
    5753  $type = $section['Type']; 
    5854 
Note: See TracChangeset for help on using the changeset viewer.