* Fix annoying blue line in Safari on scaled-down images on description page
[lhc/web/wiklou.git] / includes / ImagePage.php
index 7bdfe8c..d5cf1c0 100644 (file)
@@ -97,7 +97,7 @@ class ImagePage extends Article {
                                                $url = $full_url;
                                        }
                                        $anchoropen  = "<a href=\"{$full_url}\">";
-                                       $anchorclose = "<br />{$msg}</a>";
+                                       $anchorclose = "</a><br />\n$anchoropen{$msg}</a>";
                                } else {
                                        $url = $full_url;
                                }
@@ -359,6 +359,10 @@ class ImagePage extends Article {
                        $wgOut->readOnlyPage();
                        return;
                }
+               if( $wgUser->getId() == 0 ) {
+                       $wgOut->errorpage( 'uploadnologin', 'uploadnologintext' );
+                       return;
+               }
                if ( ! $this->mTitle->userCanEdit() ) {
                        $wgOut->sysopRequired();
                        return;
@@ -403,6 +407,10 @@ class ImagePage extends Article {
        }
 }
 
+/**
+ * @todo document
+ * @package MediaWiki
+ */
 class ImageHistoryList {
        function ImageHistoryList( &$skin ) {
                $this->skin =& $skin;