diff -r ebefca69f3fd -r 9e124177c9a4 includes/pageprocess.php --- a/includes/pageprocess.php Thu Apr 16 21:01:47 2009 -0400 +++ b/includes/pageprocess.php Thu Apr 16 22:48:59 2009 -0400 @@ -1043,6 +1043,16 @@ } /** + * Tells us if the page exists. + * @return bool + */ + + function exists() + { + return $this->ns->exists(); + } + + /** * Pushes to the redirect stack and resets the instance. This depends on the page ID and namespace already being validated and sanitized, and does not check the size of the redirect stack. * @param string Page ID to redirect to * @param string Namespace to redirect to