Swap order of exists() and isAlwaysKnown() checks, as the latter is generally less...
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 9 Aug 2010 15:35:36 +0000 (15:35 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 9 Aug 2010 15:35:36 +0000 (15:35 +0000)
includes/Title.php

index ff0721f..bf562a8 100644 (file)
@@ -3809,7 +3809,7 @@ class Title {
         * @return \type{\bool}
         */
        public function isKnown() {
-               return $this->exists() || $this->isAlwaysKnown();
+               return $this->isAlwaysKnown() || $this->exists();
        }
 
        /**