Index: trunk/extensions/GoogleAdSense/GoogleAdSense.class.php |
— | — | @@ -22,9 +22,11 @@ |
23 | 23 | if( $wgUser->isLoggedIn() && $wgGoogleAdSenseAnonOnly ) { |
24 | 24 | return $bar; |
25 | 25 | } |
| 26 | + if( !$wgGoogleAdSenseSrc ) { |
| 27 | + return $bar; |
| 28 | + } |
26 | 29 | |
27 | 30 | wfLoadExtensionMessages( 'GoogleAdSense' ); |
28 | | - |
29 | 31 | $bar['googleadsense'] = "<script type=\"text/javascript\"> |
30 | 32 | /* <![CDATA[ */ |
31 | 33 | google_ad_client = \"$wgGoogleAdSenseClient\"; |