summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-02-04 08:51:15 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-02-04 08:51:15 -0800
commiteff7de3852c1a11ee82fdb7467a6e51fa106af0f (patch)
treecaf2829284ae1d476425af5a2ea859de0e1077ff /modules
parent3d2a3bee572b8ccddf08982c5596b35a0e983b85 (diff)
If the locale is rtl then change 'after' to 'before' or vice-versa. Fixes ticket #939.
Diffstat (limited to 'modules')
-rw-r--r--modules/organize/controllers/organize.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php
index 8e2c0cee..38e8ca58 100644
--- a/modules/organize/controllers/organize.php
+++ b/modules/organize/controllers/organize.php
@@ -73,6 +73,10 @@ class Organize_Controller extends Controller {
access::required("view", $album);
access::required("edit", $album);
+ if (locales::is_rtl()) { // invert the position if the locale is rtl
+ $before_or_after = $before_or_after == "after" ? "before" : "after";
+ }
+
$source_ids = Input::instance()->post("source_ids", array());
if ($album->sort_column != "weight") {