From: Michael J. Rubinsky Date: Sat, 24 Jul 2010 18:59:24 +0000 (-0400) Subject: Various renaming and code organization changes: X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=c6f86a76f9ed9d8ec7f13c25c9ffff34ab5abce9;p=horde.git Various renaming and code organization changes: Rename ansel gallery's "default" image to "key" image - it's not a default for anything, name it appropriately in the code Move all sql storage related code to Ansel_Storage. Don't use the share's database to manipulate non-share tables. --- diff --git a/ansel/lib/Api.php b/ansel/lib/Api.php index fba48528b..08ad7601a 100644 --- a/ansel/lib/Api.php +++ b/ansel/lib/Api.php @@ -550,7 +550,7 @@ class Ansel_Api extends Horde_Registry_Api * (string)slug Ignore gallery_id, and use this as the slug * * - * @return integer The default image id. + * @return integer The key image id. */ public function getGalleryKeyImage($gallery_id, $params = array()) { @@ -564,7 +564,7 @@ class Ansel_Api extends Horde_Registry_Api $gallery = $GLOBALS['injector']->getInstance('Ansel_Storage')->getScope()->getGallery($gallery_id); } - return $gallery->getDefaultImage(empty($params['style']) ? 'ansel_default' : $params['style']); + return $gallery->getKeyImage(empty($params['style']) ? 'ansel_default' : $params['style']); } /** diff --git a/ansel/lib/Block/gallery.php b/ansel/lib/Block/gallery.php index 7294f69db..7c84e9bde 100644 --- a/ansel/lib/Block/gallery.php +++ b/ansel/lib/Block/gallery.php @@ -119,10 +119,10 @@ class Horde_Block_ansel_gallery extends Horde_Block true); $html .= '