r87334 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r87333
|
r87334
|
r87335
>
Date:
16:54, 3 May 2011
Author:
maxsem
Status:
ok
Tags:
Comment:
Added a function that returns the list of supported formats to ApiMain
Modified paths:
/trunk/phase3/includes/api/ApiMain.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/includes/api/ApiMain.php
—
—
@@ -989,6 +989,16 @@
990
990
function getModules() {
991
991
return $this->mModules;
992
992
}
993
+
994
+ /**
995
+ * Returns the list of supported formats in form ( 'format' => 'ClassName' )
996
+ *
997
+ * @since 1.18
998
+ * @return array
999
+ */
1000
+ public function getFormats() {
1001
+ return $this->mFormats;
1002
+ }
993
1003
}
994
1004
995
1005
/**
Status & tagging log
18:11, 3 May 2011
Catrope
(
talk
|
contribs
)
changed the
status
of r87334
[
removed:
new
added:
ok]