Changeset 27196 for extensions/MostCommented/maintain.inc.php
- Timestamp:
- Feb 4, 2014, 11:14:14 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/MostCommented/maintain.inc.php
r3609 r27196 4 4 { 5 5 $q = pwg_query('SHOW COLUMNS FROM ' . HISTORY_TABLE . ' LIKE "section"'); 6 $section = mysql_fetch_array($q);6 $section = pwg_db_fetch_array($q); 7 7 $type = $section['Type']; 8 8 9 9 if (substr_count($type, 'most_commented') == 0) 10 { 10 11 $type = strtr($type , array(')' => ',\'most_commented\')')); 12 } 11 13 12 14 pwg_query('ALTER TABLE ' . HISTORY_TABLE . ' CHANGE section section ' . $type . ' DEFAULT NULL'); 13 15 } 14 15 ?>
Note: See TracChangeset
for help on using the changeset viewer.