Pet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 22 Aug 2009 01:24:04 +0000 (01:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 22 Aug 2009 01:24:04 +0000 (01:24 +0000)
commit71432fb487a9f93a244a9f0761d80a33839d0567
tree669768d516f11ab671a3a49c274a77711fe3c33a
parentfb2f9aa34d2034aca2898b97f289b4f553ebb9c9
Pet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)

Introduced helpers:
  $lang->getDir() returns 'ltr' or 'rtl' for HTML 'dir' attrib
  $lang->alignStart() returns 'left' or 'right' for HTML 'align' attrib or CSS 'text-align' property
  $lang->alignEnd() returns 'right' or 'left'

And cleaned up a couple arrays of icons to just reverse the order of items rather than repeating the items twice for each possibility.
includes/Article.php
includes/Linker.php
includes/OutputPage.php
includes/Pager.php
includes/Skin.php
includes/SkinTemplate.php
includes/specials/SpecialFileDuplicateSearch.php
includes/specials/SpecialUpload.php
includes/specials/SpecialVersion.php
languages/Language.php
skins/Standard.php