r99578 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99577‎ | r99578 | r99579 >
Date:21:45, 11 October 2011
Author:reedy
Status:ok
Tags:
Comment:
version_compare is teh suck
Modified paths:
  • /branches/wmf/1.18wmf1/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.18wmf1/extensions/Translate/Translate.php
@@ -187,11 +187,11 @@
188188 ) + $resourcePaths;
189189
190190 // Doesn't exist in 1.17, but declaring twice causes an error
191 -if ( version_compare( $wgVersion, '1.18', '<' ) ) {
192 -$wgResourceModules['jquery.form'] = array(
193 - 'scripts' => 'resources/jquery.form.js',
194 -) + $resourcePaths;
195 -}
 191+//if ( version_compare( $wgVersion, '1.18', '<' ) ) {
 192+//$wgResourceModules['jquery.form'] = array(
 193+// 'scripts' => 'resources/jquery.form.js',
 194+//) + $resourcePaths;
 195+//}
196196
197197 /** @endcond */
198198

Status & tagging log