fix calculating vfs paths when using vfs direct
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 31 Dec 2010 14:49:15 +0000 (09:49 -0500)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 31 Dec 2010 14:49:15 +0000 (09:49 -0500)
ansel/lib/Image.php
ansel/lib/Style.php

index d10d673..f012ef2 100644 (file)
@@ -345,7 +345,7 @@ class Ansel_Image Implements Iterator
         }
 
         /* Get the VFS path. */
-        $view = Ansel::getViewHash($view, $style);
+        $view = $style->getHash($view);
 
         /* Can't call the various vfs methods here, since this method needs
         to be called statically */
index 86656d0..1b12fad 100644 (file)
@@ -57,9 +57,7 @@ class Ansel_Style
 
     public function getHash($view)
     {
-        if ($view != 'screen' && $view != 'thumb' && $view != 'mini' &&
-            $view != 'full') {
-
+        if ($view != 'screen' && $view != 'mini' && $view != 'full') {
             $view = md5($this->thumbstyle . '.' . $this->background);
         }