Changeset 1319
- Timestamp:
- May 23, 2006, 11:15:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1_6/upgrade.php
r1209 r1319 82 82 while ($row = mysql_fetch_row($result)) 83 83 { 84 array_push(85 $tables,86 preg_replace('/^'.PREFIX_TABLE.'/', '', $row[0])87 );84 if (preg_match('/^'.PREFIX_TABLE.'/', $row[0])) 85 { 86 array_push($tables, $row[0]); 87 } 88 88 } 89 89 … … 103 103 { 104 104 $query = ' 105 DESC '. PREFIX_TABLE.$table.'105 DESC '.$table.' 106 106 ;'; 107 107 $result = mysql_query($query); … … 162 162 $columns_of = get_columns_of($tables); 163 163 164 if (!in_array('param', $columns_of[ 'config']))164 if (!in_array('param', $columns_of[PREFIX_TABLE.'config'])) 165 165 { 166 166 // we're in branch 1.3, important upgrade, isn't it? 167 if (in_array( 'user_category', $tables))167 if (in_array(PREFIX_TABLE.'user_category', $tables)) 168 168 { 169 169 $current_release = '1.3.1'; … … 174 174 } 175 175 } 176 else if (!in_array( 'user_cache', $tables))176 else if (!in_array(PREFIX_TABLE.'user_cache', $tables)) 177 177 { 178 178 $current_release = '1.4.0'; 179 179 } 180 else if (!in_array( 'tags', $tables))180 else if (!in_array(PREFIX_TABLE.'tags', $tables)) 181 181 { 182 182 $current_release = '1.5.0';
Note: See TracChangeset
for help on using the changeset viewer.