http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96003
Revision: 96003
Author: catrope
Date: 2011-09-01 15:51:59 +0000 (Thu, 01 Sep 2011)
Log Message:
-----------
RL2: Make getExamples() in API modules public, was done in trunk earlier
Modified Paths:
--------------
branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php
branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
Modified: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
===================================================================
--- branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
2011-09-01 15:50:26 UTC (rev 96002)
+++ branches/RL2/extensions/Gadgets/api/ApiQueryGadgetCategories.php
2011-09-01 15:51:59 UTC (rev 96003)
@@ -121,7 +121,7 @@
);
}
- protected function getExamples() {
+ public function getExamples() {
$params = $this->getAllowedParams();
$allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE]
);
return array(
Modified: branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php
===================================================================
--- branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php 2011-09-01
15:50:26 UTC (rev 96002)
+++ branches/RL2/extensions/Gadgets/api/ApiQueryGadgetPages.php 2011-09-01
15:51:59 UTC (rev 96003)
@@ -140,7 +140,7 @@
);
}
- protected function getExamples() {
+ public function getExamples() {
return array(
'Get a list of .js pages in the MediaWiki namespace:',
'
api.php?action=query&list=gadgetpages&gpextension=js&gpnamespace=8',
Modified: branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php
===================================================================
--- branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php 2011-09-01
15:50:26 UTC (rev 96002)
+++ branches/RL2/extensions/Gadgets/api/ApiQueryGadgets.php 2011-09-01
15:51:59 UTC (rev 96003)
@@ -200,7 +200,7 @@
);
}
- protected function getExamples() {
+ public function getExamples() {
$params = $this->getAllowedParams();
$allProps = implode( '|', $params['prop'][ApiBase::PARAM_TYPE]
);
return array(
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs