Fixing E_NOTICE
[lhc/web/wiklou.git] / includes / Title.php
index 674fc05..0c91eab 100644 (file)
@@ -1395,6 +1395,10 @@ class Title {
                        return $result;
                }
 
+               # Shortcut for public wikis, allows skipping quite a bit of code
+               if ($wgGroupPermissions['*']['read'])
+                       return true;
+
                if( $wgUser->isAllowed( 'read' ) ) {
                        return true;
                } else {