From: Michael J. Rubinsky Date: Sun, 23 Jan 2011 18:42:47 +0000 (-0500) Subject: One more place we need ids instead of names. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fbc703e8258be9de7857ba96d33129f9558e3717;p=horde.git One more place we need ids instead of names. Add a utility function to act as callback to array_map, still need to audit code for all places to use it. --- diff --git a/ansel/lib/Ansel.php b/ansel/lib/Ansel.php index 1fff82b46..953f4888e 100644 --- a/ansel/lib/Ansel.php +++ b/ansel/lib/Ansel.php @@ -52,6 +52,11 @@ class Ansel return $mdb; } + static public function keysFromNames($gallery) + { + return $gallery->getId(); + } + /** * Return a string containing an