Index: trunk/extensions/LiveTranslate/LiveTranslate.php |
— | — | @@ -84,7 +84,7 @@ |
85 | 85 | ); |
86 | 86 | |
87 | 87 | // For backward compatibility with MW < 1.17. |
88 | | -if ( is_callable( array( 'OutputPage', 'addModules' ) ) ) { |
| 88 | +if ( defined( 'MW_SUPPORTS_RESOURCE_MODULES' ) ) { |
89 | 89 | $moduleTemplate = array( |
90 | 90 | 'localBasePath' => dirname( __FILE__ ), |
91 | 91 | 'remoteBasePath' => $egLiveTranslateScriptPath, |