r37387 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37386‎ | r37387 | r37388 >
Date:13:26, 9 July 2008
Author:raymond
Status:old
Tags:
Comment:
* Let the {{#ifexist}} works with encoded URLs too. See testcase http://test.wikipedia.org/wiki/User:Raymond/ifexist
* Update URL in extension credits
Modified paths:
  • /trunk/extensions/ParserFunctions/ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ParserFunctions/ParserFunctions.php
@@ -6,11 +6,13 @@
77
88 $wgExtensionFunctions[] = 'wfSetupParserFunctions';
99 $wgExtensionCredits['parserhook'][] = array(
10 - 'name' => 'ParserFunctions',
11 - 'version' => '1.1.1',
12 - 'url' => 'http://meta.wikimedia.org/wiki/ParserFunctions',
13 - 'author' => 'Tim Starling',
14 - 'description' => 'Enhance parser with logical functions',
 10+ 'name' => 'ParserFunctions',
 11+ 'version' => '1.1.2',
 12+ 'svn-date' => '$LastChangedDate$',
 13+ 'svn-revision' => '$LastChangedRevision$',
 14+ 'url' => 'http://meta.wikimedia.org/wiki/Help:ParserFunctions',
 15+ 'author' => 'Tim Starling',
 16+ 'description' => 'Enhance parser with logical functions',
1517 'descriptionmsg' => 'pfunc_desc',
1618 );
1719
@@ -328,7 +330,7 @@
329331 }
330332
331333 function ifexistCommon( &$parser, $frame, $title = '', $then = '', $else = '' ) {
332 - $title = Title::newFromText( $title );
 334+ $title = Title::newFromText( urldecode( $title ) );
333335 if ( $title ) {
334336 if( $title->getNamespace() == NS_MEDIA ) {
335337 /* If namespace is specified as NS_MEDIA, then we want to
Property changes on: trunk/extensions/ParserFunctions/ParserFunctions.php
___________________________________________________________________
Added: svn:keywords
336338 + LastChangedDate LastChangedRevision

Follow-up revisions

RevisionCommit summaryAuthorDate
r37420Revert r37387 "Let the {{#ifexist}} works with encoded URLs too. See testcase"...brion17:46, 9 July 2008

Status & tagging log