r47600 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47599‎ | r47600 | r47601 >
Date:08:33, 21 February 2009
Author:nad
Status:ok
Tags:
Comment:
only use first four characters of $wgVersion in comparison
Modified paths:
  • /trunk/extensions/RecordAdmin/RecordAdmin_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php
@@ -34,8 +34,7 @@
3535 if ( $type && $wgRecordAdminUseNamespaces ) {
3636 if ( $wpTitle && !ereg( "^$type:.+$", $wpTitle ) ) $wpTitle = "$type:$wpTitle";
3737 }
38 -
39 - if (version_compare($wgVersion, '1.14.0') >= 0) {
 38+ if (version_compare(substr($wgVersion, 0, 4), '1.13') > 0) {
4039 $wgOut->addHTML( $wgLang->pipeList( array(
4140 "<div class='center'><a href='" . $title->getLocalURL() . "/$type'>" . wfMsg( 'recordadmin-newsearch', $type ) . "</a>",
4241 "<a href='" . $title->getLocalURL() . "'>" . wfMsg( 'recordadmin-newrecord' ) . "</a></div><br>\n"

Status & tagging log