If the locale is rtl then change 'after' to 'before' or vice-versa. Fixes ticket #939.

This commit is contained in:
Tim Almdal
2010-02-04 08:51:15 -08:00
parent 3d2a3bee57
commit eff7de3852
@@ -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") {