Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -9,20 +9,6 @@ |
10 | 10 | exit( 1 ); |
11 | 11 | } |
12 | 12 | |
13 | | -# Helper function: check if the given key is present in the updatelog table. |
14 | | -# Obviously, only use this for updates that occur after the updatelog table was |
15 | | -# created! |
16 | | -function update_row_exists( $key ) { |
17 | | - global $wgDatabase; |
18 | | - $row = $wgDatabase->selectRow( |
19 | | - 'updatelog', |
20 | | - '1', |
21 | | - array( 'ul_key' => $key ), |
22 | | - __FUNCTION__ |
23 | | - ); |
24 | | - return (bool)$row; |
25 | | -} |
26 | | - |
27 | 13 | function modify_field( $table, $field, $patch, $fullpath = false ) { |
28 | 14 | global $wgDatabase; |
29 | 15 | if ( !$wgDatabase->tableExists( $table ) ) { |
Index: trunk/phase3/maintenance/install-utils.inc |
— | — | @@ -197,6 +197,21 @@ |
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
| 201 | + * Helper function: check if the given key is present in the updatelog table. |
| 202 | + * Obviously, only use this for updates that occur after the updatelog table was |
| 203 | + * created! |
| 204 | + */ |
| 205 | +function update_row_exists( $key ) { |
| 206 | + $row = wfGetDB( DB_MASTER )->selectRow( |
| 207 | + 'updatelog', |
| 208 | + '1', |
| 209 | + array( 'ul_key' => $key ), |
| 210 | + __FUNCTION__ |
| 211 | + ); |
| 212 | + return (bool)$row; |
| 213 | +} |
| 214 | + |
| 215 | +/** |
201 | 216 | * Get the value of session.save_path |
202 | 217 | * |
203 | 218 | * Per http://www.php.net/manual/en/ref.session.php#ini.session.save-path, |