Index: trunk/extensions/Push/Push.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | ); |
100 | 100 | |
101 | 101 | // For backward compatibility with MW < 1.17. |
102 | | -if ( is_callable( array( 'OutputPage', 'addModules' ) ) ) { |
| 102 | +if ( defined( 'MW_SUPPORTS_RESOURCE_MODULES' ) ) { |
103 | 103 | $moduleTemplate = array( |
104 | 104 | 'localBasePath' => dirname( __FILE__ ), |
105 | 105 | 'remoteBasePath' => $egPushScriptPath, |