Index: trunk/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -27,10 +27,10 @@ |
28 | 28 | global $wgRequest, $wgConf, $wgEnableZeroRatedMobileAccessTesting; |
29 | 29 | wfProfileIn( __METHOD__ ); |
30 | 30 | |
31 | | - $dB = wfGetDB( DB_MASTER ); |
32 | | - $dBname = $dB->getDBname(); |
| 31 | + $DB = wfGetDB( DB_MASTER ); |
| 32 | + $DBName = $DB->getDBname(); |
33 | 33 | |
34 | | - list( $site, $lang ) = $wgConf->siteFromDB( $dBname ); |
| 34 | + list( $site, $lang ) = $wgConf->siteFromDB( $DBName ); |
35 | 35 | if ( $site == 'wikipedia' || $wgEnableZeroRatedMobileAccessTesting ) { |
36 | 36 | |
37 | 37 | $xDevice = isset( $_SERVER['HTTP_X_DEVICE'] ) ? $_SERVER['HTTP_X_DEVICE'] : ''; |