openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit b0b513f970cf4af9e5ef8edafb386cfaa4a1ec4a
parent 1d9d77d8725ed0a1e7dc1cd9e29869b1e6cf5bd7
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 21 Dec 2017 00:46:52 +0100

Makro 'Album' muss die Klasse 'Image' verwenden, um Bildgrößen zu ermitteln.

Diffstat:
modules/cms-macros/macro/Album.class.php | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/cms-macros/macro/Album.class.php b/modules/cms-macros/macro/Album.class.php @@ -17,6 +17,7 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. use cms\model\File; use cms\model\Folder; +use cms\model\Image; /** @@ -72,7 +73,7 @@ class Album extends Macro foreach( $files as $fileid ) { - $file = new File($fileid); + $file = new Image($fileid); $file->load(); if ( $file->isImage() )