X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=blobdiff_plain;f=Pman%2FImages.php;fp=Pman%2FImages.php;h=d9422adb88931af48014fd48a23e95f31b69043b;hp=a5b395da4b36540b5dabe651eeee4df7aa7507cb;hb=830c718f2c20c9535bda2d70b0038bfa25ec213f;hpb=0c1e0ee5a8718d84b41edfa035f29e7fb3180828 diff --git a/Pman/Images.php b/Pman/Images.php index a5b395d..d9422ad 100644 --- a/Pman/Images.php +++ b/Pman/Images.php @@ -158,9 +158,7 @@ class Pman_Images extends Pman } function validateSize() { - // this should be configurable... - if (!in_array($this->size, array( - + $sizes = array( '100', '100x100', '150', @@ -169,7 +167,19 @@ class Pman_Images extends Pman '200x0', '200x200', '400x0', - '500', + '500' + ); + + // this should be configurable... + $ff = HTML_FlexyFramework::get(); + if ($ff->Pman_Images['sizes']) { + $sizes = array_merge($sizes , $ff->Pman_Images['sizes']); + } + + + if (!in_array($this->size, array( + + ))) { die("invalid scale - ".$this->size); }