http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96014

Revision: 96014
Author:   catrope
Date:     2011-09-01 17:12:01 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
RL2: Add pagename property to list=gadgetpages containing the page title 
without the namespace prefix. Timo needs this for his AJAX stuff

Modified Paths:
--------------
    branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php

Modified: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php
===================================================================
--- branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php 2011-09-01 
17:08:00 UTC (rev 96013)
+++ branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php 2011-09-01 
17:12:01 UTC (rev 96014)
@@ -75,7 +75,7 @@
                        
                        $title = Title::makeTitle( $row->gpl_namespace, 
$row->gpl_title );
                        if ( is_null( $resultPageSet ) ) {
-                               $vals = array();
+                               $vals = array( 'pagename' => 
$title->getPrefixedText() );
                                self::addTitleInfo( $vals, $title );
                                $fit = $result->addValue( array( 'query', 
$this->getModuleName() ), null, $vals );
                                if ( !$fit ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to