dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Followup r95753 per CR: prevent extensions from making isMovable() return true for...
[lhc/web/wiklou.git]
/
includes
/
Namespace.php
diff --git
a/includes/Namespace.php
b/includes/Namespace.php
index
34ab6bb
..
0883011
100644
(file)
--- a/
includes/Namespace.php
+++ b/
includes/Namespace.php
@@
-27,10
+27,13
@@
class MWNamespace {
/**
* Throw an exception when trying to get the subject or talk page
* for a given namespace where it does not make sense.
/**
* Throw an exception when trying to get the subject or talk page
* for a given namespace where it does not make sense.
- * Special namespaces are defined in includes/
define
.php and have
+ * Special namespaces are defined in includes/
Defines
.php and have
* a value below 0 (ex: NS_SPECIAL = -1 , NS_MEDIA = -2)
*
* a value below 0 (ex: NS_SPECIAL = -1 , NS_MEDIA = -2)
*
- * @param $ns Int: namespace index
+ * @param $index
+ * @param $method
+ *
+ * @return true
*/
private static function isMethodValidFor( $index, $method ) {
if( $index < NS_MAIN ) {
*/
private static function isMethodValidFor( $index, $method ) {
if( $index < NS_MAIN ) {
@@
-124,6
+127,10
@@
class MWNamespace {
/**
* Returns whether the specified namespace exists
/**
* Returns whether the specified namespace exists
+ *
+ * @param $index
+ *
+ * @return bool
*/
public static function exists( $index ) {
$nslist = self::getCanonicalNamespaces();
*/
public static function exists( $index ) {
$nslist = self::getCanonicalNamespaces();