Commit 141e54f6 authored by sylvieg's avatar sylvieg

[MOD]fgal : can default sort on ID

parent 4d1423c2
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_include_fgal.php,v 1.24 2007-03-19 17:53:55 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-admin_include_fgal.php,v 1.25 2007-03-19 19:14:34 sylvieg Exp $
// Copyright (c) 2002-2007, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
......@@ -109,7 +109,7 @@ if (!empty($fgal_sort_mode)) {
$smarty->assign('sortorder', 'created');
$smarty->assign('sortdirection', 'desc');
}
$options_sortorder = array(tra('Creation Date')=>'created', tra('Name')=>'name', tra('Last modification date')=>'lastModif', tra('Hits')=>'hits', tra('Owner') => 'user', tra('Description') => 'description');
$options_sortorder = array(tra('Creation Date')=>'created', tra('Name')=>'name', tra('Last modification date')=>'lastModif', tra('Hits')=>'hits', tra('Owner') => 'user', tra('Description') => 'description', tra('ID') => 'galleryId');
$smarty->assign_by_ref('options_sortorder', $options_sortorder);
$handlers = $filegallib->get_file_handlers();
......
<?php
// $Header: /cvsroot/tikiwiki/tiki/tiki-file_galleries.php,v 1.42 2007-02-14 15:16:04 sylvieg Exp $
// $Header: /cvsroot/tikiwiki/tiki/tiki-file_galleries.php,v 1.43 2007-03-19 19:14:34 sylvieg Exp $
require_once('tiki-setup.php');
include_once('lib/filegals/filegallib.php');
......@@ -381,7 +381,7 @@
$users = $tikilib->list_users(0, -1, 'login_asc');
$smarty->assign_by_ref('users', $users['data']);
}
$options_sortorder = array(tra('Creation Date')=>'created', tra('Name')=>'name', tra('Filename')=>'filename', tra('Size')=>'filesize', tra('Owner') => 'user',tra('Downloads') => 'downloads');
$options_sortorder = array(tra('Creation Date')=>'created', tra('Name')=>'name', tra('Filename')=>'filename', tra('Size')=>'filesize', tra('Owner') => 'user',tra('Downloads') => 'downloads', tra('ID') => 'fileId');
$smarty->assign_by_ref('options_sortorder', $options_sortorder);
$cat_type='file gallery';
......
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