Ignore:
Timestamp:
02/04/14 23:14:14 (6 years ago)
Author:
mistic100
Message:

Update for Piwigo 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/MostCommented/maintain.inc.php

    r3609 r27196  
    44{ 
    55  $q = pwg_query('SHOW COLUMNS FROM ' . HISTORY_TABLE . ' LIKE "section"'); 
    6   $section = mysql_fetch_array($q); 
     6  $section = pwg_db_fetch_array($q); 
    77  $type = $section['Type']; 
    88 
    99  if (substr_count($type, 'most_commented') == 0) 
     10  { 
    1011    $type = strtr($type , array(')' => ',\'most_commented\')')); 
     12  } 
    1113 
    1214  pwg_query('ALTER TABLE ' . HISTORY_TABLE . ' CHANGE section section ' . $type . ' DEFAULT NULL'); 
    1315} 
    14  
    15 ?> 
Note: See TracChangeset for help on using the changeset viewer.