| @@ 969-979 (lines=11) @@ | ||
| 966 | return $res; |
|
| 967 | } |
|
| 968 | ||
| 969 | function tableName( $name, $format = 'quoted' ) { |
|
| 970 | # Replace reserved words with better ones |
|
| 971 | switch ( $name ) { |
|
| 972 | case 'user': |
|
| 973 | return $this->realTableName( 'mwuser', $format ); |
|
| 974 | case 'text': |
|
| 975 | return $this->realTableName( 'pagecontent', $format ); |
|
| 976 | default: |
|
| 977 | return $this->realTableName( $name, $format ); |
|
| 978 | } |
|
| 979 | } |
|
| 980 | ||
| 981 | /* Don't cheat on installer */ |
|
| 982 | function realTableName( $name, $format = 'quoted' ) { |
|
| @@ 1337-1345 (lines=9) @@ | ||
| 1334 | * @param string $format |
|
| 1335 | * @return string |
|
| 1336 | */ |
|
| 1337 | function tableName( $name, $format = 'quoted' ) { |
|
| 1338 | # Replace reserved words with better ones |
|
| 1339 | switch ( $name ) { |
|
| 1340 | case 'user': |
|
| 1341 | return $this->realTableName( 'mwuser', $format ); |
|
| 1342 | default: |
|
| 1343 | return $this->realTableName( $name, $format ); |
|
| 1344 | } |
|
| 1345 | } |
|
| 1346 | ||
| 1347 | /** |
|
| 1348 | * call this instead of tableName() in the updater when renaming tables |
|