feature 408: ability to automatically sort sub-categories. The number of SQL

queries is constant, no matter the deepth of your tree.

+ refactor to avoid duplicate code (ascending/desceding should be only a
single parameter in a function, not 20 lines of duplicated code)


git-svn-id: http://piwigo.org/svn/trunk@6698 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall
2010-07-23 21:33:56 +00:00
parent 361ef07c3c
commit 1448b42df0
5 changed files with 108 additions and 64 deletions
+4 -4
View File
@@ -633,8 +633,6 @@ $lang['Tools'] = "Tools";
$lang['Photos'] = "Photos";
$lang['Themes'] = "Themes";
$lang['Instructions to use Piwigo'] = "Instructions to use Piwigo";
$lang['Order alphanumerically'] = "Alphanumerical order";
$lang['Order alphanumerically reverse'] = "Reverse alphanumerical order";
$lang['Installed Themes'] = "Installed Themes";
$lang['Add New Theme'] = "Add a new theme";
$lang['Forbid this theme to users'] = "Forbid this theme to users";
@@ -683,8 +681,6 @@ $lang['Your configuration settings are saved'] = 'Your configuration settings ar
$lang['Active Themes'] = 'Active Themes';
$lang['Add write access to the "%s" directory'] = 'Add write access to the "%s" directory';
$lang['Administration Home'] = 'Administration Home';
$lang['Categories ordered alphanumerically'] = 'Categories sorted by alphanumerical order';
$lang['Categories ordered alphanumerically reverse'] = 'Categories sorted by reverse alphanumeric order';
$lang['Change Admin Colors'] = 'Change administration colors';
$lang['Delete this theme'] = 'Delete this theme';
$lang['Directory does not exist'] = 'Directory does not exist';
@@ -770,4 +766,8 @@ $lang['File upload stopped by extension'] = 'File upload stopped by extension';
$lang['Unknown upload error'] = 'Unknown upload error';
$lang['Error on file "%s" : %s'] = 'Error on file "%s" : %s';
$lang['Menu Management'] = 'Menus';
$lang['apply to sub-categories'] = 'apply to sub-categories';
$lang['automatic order'] = 'automatic order';
$lang['manual order'] = 'manual order';
$lang['Categories automatically sorted'] = 'Categories automatically sorted';
?>