Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php |
— | — | @@ -389,8 +389,7 @@ |
390 | 390 | # - query method is overriden to ensure that old_id field is returned for all queries which read old_text field |
391 | 391 | # - only SELECT statements are ever patched |
392 | 392 | # - fetchObject method is overridden to validate row content based on old_id |
393 | | - $oldClass = ucfirst( $wgDBtype ); |
394 | | - eval( "class Database_SimpleSecurity extends Database{$oldClass}" . ' { |
| 393 | + eval( 'class Database_SimpleSecurity extends Database' . ucfirst( $wgDBtype ) . ' { |
395 | 394 | public function query( $sql, $fname = "", $tempIgnore = false ) { |
396 | 395 | $patched = preg_replace_callback( "/(?<=SELECT ).+?(?= FROM)/", array("SimpleSecurity", "patchSQL"), $sql, 1 ); |
397 | 396 | return parent::query( $patched, $fname, $tempIgnore ); |