Fixed fatal error breakage (bug 19562)
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 8 Jul 2009 00:35:47 +0000 (00:35 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 8 Jul 2009 00:35:47 +0000 (00:35 +0000)
includes/Skin.php

index 644b06a..88fab3f 100644 (file)
@@ -1467,7 +1467,8 @@ END;
                        return $out;
                }
                // Allow for site and per-namespace customization of copyright notice.
-               wfRunHooks( 'SkinCopyrightFooter', array( $wgArticle->getTitle(), $type, &$msg, &$link ) );
+               if( isset($wgArticle) )
+                       wfRunHooks( 'SkinCopyrightFooter', array( $wgArticle->getTitle(), $type, &$msg, &$link ) );
                
                $out .= wfMsgForContent( $msg, $link );
                return $out;