Commit dfc41867 authored by jonnybradley's avatar jonnybradley

[FIX] Alpha order for "move to" gallery list

parent 0b820329
......@@ -94,9 +94,7 @@
{tr}Move to{/tr}:
<select name="moveto">
{section name=ix loop=$all_galleries}
{if $all_galleries[ix].id ne $gal_info.galleryId}
<option value="{$all_galleries[ix].id|escape}">{if $all_galleries[ix].parentName}{$all_galleries[ix].parentName|escape} > {/if}{$all_galleries[ix].name|escape}</option>
{/if}
<option value="{$all_galleries[ix].id}">{$all_galleries[ix].label|escape}</option>
{/section}
</select>
<input type='submit' name='movesel' value='{tr}Move{/tr}' />
......
......@@ -637,7 +637,14 @@ if ($prefs['feature_user_watches'] == 'y') {
if ($prefs['fgal_show_explorer'] == 'y' || $prefs['fgal_show_path'] == 'y' || isset($_REQUEST['movesel'])) {
$all_galleries = $filegallib->getFileGalleriesData();
$smarty->assign_by_ref('all_galleries', $all_galleries['data']);
$gals = array();
foreach ($all_galleries['data'] as $gal) {
if ($gal['id'] != $galleryId) {
$gals[] = array('label' => $gal['parentName'] . ' > ' . $gal['name'], 'id' => $gal['id']);
}
}
sort($gals);
$smarty->assign_by_ref('all_galleries', $gals);
if ( ! empty($all_galleries) && is_array($all_galleries) && $all_galleries['cant'] > 0) {
$phplayersTreeData = $filegallib->getFilegalsTreePhplayers( $galleryId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment