r70973 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70972‎ | r70973 | r70974 >
Date:17:38, 12 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Small change to the QueryExtensions API and script to get extension metadata, will make follow up commit soon
Modified paths:
  • /trunk/extensions/Distribution/api/ApiQueryExtensions.php (modified) (history)
  • /trunk/extensions/Distribution/maintenance/getSvnMetadata.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Distribution/maintenance/getSvnMetadata.php
@@ -141,7 +141,7 @@
142142 'description' => 'Awesome extension will be awesome when fully implemented.',
143143 'version' => 4.2,
144144 'authors' => 'James T. Kirk, Luke Skywalker',
145 - 'url' => 'http://www.mediawiki.org/wiki/Special:ExtensionDistributor/' . $extensionName
 145+ 'url' => 'http://www.mediawiki.org/wiki/Extension:' . $extensionName
146146 );
147147
148148 return $extension;
Index: trunk/extensions/Distribution/api/ApiQueryExtensions.php
@@ -78,7 +78,7 @@
7979 switch ( $params['filter'] ) {
8080 case 'term' :
8181 // TODO
82 - $this->addWhere( "unit_name = '$params[value]'" );
 82+ $this->addWhere( "unit_name LIKE '%$params[value]%'" );
8383 break;
8484 case 'author' :
8585 // TODO

Status & tagging log