From fbc703e8258be9de7857ba96d33129f9558e3717 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sun, 23 Jan 2011 13:42:47 -0500 Subject: [PATCH] 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. --- ansel/lib/Ansel.php | 5 +++++ ansel/lib/Storage.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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