includes/pageprocess.php
changeset 935 9e124177c9a4
parent 913 3ec535acd11e
child 953 323c4cd1aa37
--- 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