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
Fix doc typo for wasConnectionError()
[lhc/web/wiklou.git]
/
includes
/
title
/
TitleValue.php
diff --git
a/includes/title/TitleValue.php
b/includes/title/TitleValue.php
index
63c075f
..
597bf2f
100644
(file)
--- a/
includes/title/TitleValue.php
+++ b/
includes/title/TitleValue.php
@@
-94,6
+94,15
@@
class TitleValue implements LinkTarget {
return $this->namespace;
}
+ /**
+ * @since 1.27
+ * @param int $ns
+ * @return bool
+ */
+ public function inNamespace( $ns ) {
+ return $this->namespace == $ns;
+ }
+
/**
* @return string
*/