summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
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") {