Changeset 25018 for trunk/admin/include/functions_upgrade.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upgrade.php
r20720 r25018 94 94 while ($row = pwg_db_fetch_assoc($result)) 95 95 { 96 array_push($plugins, $row['id']);96 $plugins[] = $row['id']; 97 97 } 98 98 … … 106 106 pwg_query($query); 107 107 108 array_push($page['infos'],109 l10n('As a precaution, following plugins have been deactivated. You must check for plugins upgrade before reactiving them:').'<p><i>'.implode(', ', $plugins).'</i></p>');108 $page['infos'][] = l10n('As a precaution, following plugins have been deactivated. You must check for plugins upgrade before reactiving them:') 109 .'<p><i>'.implode(', ', $plugins).'</i></p>'; 110 110 } 111 111 } … … 136 136 while ($row = pwg_db_fetch_assoc($result)) 137 137 { 138 array_push($theme_ids, $row['id']);139 array_push($theme_names, $row['name']);138 $theme_ids[] = $row['id']; 139 $theme_names[] = $row['name']; 140 140 } 141 141 … … 149 149 pwg_query($query); 150 150 151 array_push($page['infos'],152 l10n('As a precaution, following themes have been deactivated. You must check for themes upgrade before reactiving them:').'<p><i>'.implode(', ', $theme_names).'</i></p>');151 $page['infos'][] = l10n('As a precaution, following themes have been deactivated. You must check for themes upgrade before reactiving them:') 152 .'<p><i>'.implode(', ', $theme_names).'</i></p>'; 153 153 154 154 // what is the default theme? … … 250 250 if (!$conf['password_verify']($password, $row['password'])) 251 251 { 252 array_push($page['errors'], l10n('Invalid password!'));252 $page['errors'][] = l10n('Invalid password!'); 253 253 } 254 254 elseif ($row['status'] != 'admin' and $row['status'] != 'webmaster') 255 255 { 256 array_push($page['errors'], l10n('You do not have access rights to run upgrade'));256 $page['errors'][] = l10n('You do not have access rights to run upgrade'); 257 257 } 258 258 else … … 280 280 and preg_match('/^(.*?)-database\.php$/', $node, $match)) 281 281 { 282 array_push($available_upgrade_ids, $match[1]);282 $available_upgrade_ids[] = $match[1]; 283 283 } 284 284 }
Note: See TracChangeset
for help on using the changeset viewer.