Pet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)
[lhc/web/wiklou.git] / includes / specials / SpecialUpload.php
index 6d9fd3b..7c51fa1 100644 (file)
@@ -330,14 +330,11 @@ class UploadForm extends SpecialPage {
                global $wgUser, $wgContLang;
                // Check for uppercase extension. We allow these filenames but check if an image
                // with lowercase extension exists already
-               $warning = '';
-               $align = $wgContLang->isRtl() ? 'left' : 'right';
-
                if( $exists === false )
                        return '';
 
                $warning = '';
-               $align = $wgContLang->isRtl() ? 'left' : 'right';
+               $align = $wgContLang->alignEnd();
 
                list( $existsType, $file ) = $exists;