mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-05 16:32:29 +01:00
removed unused files / code / css; shorter code
git-svn-id: http://piwigo.org/svn/trunk@8247 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
2a49b76ae1
commit
732eb6bfba
9 files changed
+26
-548
No files matched your search
@@ -2054,4 +2054,21 @@ function get_fckb_tag_ids($raw_tags)
|
||||
|
||||
return $tag_ids;
|
||||
}
|
||||
?>
|
||||
|
||||
/** returns the argument_ids array with new sequenced keys based on related
|
||||
* names. Sequence is not case sensitive.
|
||||
* Warning: By definition, this function breaks original keys
|
||||
*/
|
||||
function order_by_name($element_ids,$name)
|
||||
{
|
||||
$ordered_element_ids = array();
|
||||
foreach ($element_ids as $k_id => $element_id)
|
||||
{
|
||||
$key = strtolower($name[$element_id]) .'-'. $name[$element_id] .'-'. $k_id;
|
||||
$ordered_element_ids[$key] = $element_id;
|
||||
}
|
||||
ksort($ordered_element_ids);
|
||||
return $ordered_element_ids;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user