* User::setPassword() now throws PasswordError exceptions if the password
is illegal or cannot be set via $wgAuth. These can be caught and a human-
readable error message displayed by UI code.
-
+* Added Title::isSubpage()
== Languages updated ==
return Namespace::isTalk( $this->getNamespace() );
}
+ /**
+ * Is this a subpage?
+ * @return bool
+ * @access public
+ */
+ function isSubpage() {
+ global $wgNamespacesWithSubpages;
+ return ( strpos( $this->getText(), '/' ) !== false && $wgNamespacesWithSubpages[ $this->mNamespace ] == true );
+ }
+
/**
* Is this a .css or .js subpage of a user page?
* @return bool