diff --git a/www/admin/class_test.image.php b/www/admin/class_test.image.php index 0ae756ba..21e8ee71 100644 --- a/www/admin/class_test.image.php +++ b/www/admin/class_test.image.php @@ -41,9 +41,9 @@ print '

' . $PAGE_NAME . '

'; $thumb_width = 250; $thumb_height = 300; // class -$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . 'no_picture_square.jpg'; +$image = BASE . CONTENT_PATH . LAYOUT . IMAGES . 'no_picture_square.jpg'; // folders -$cache_folder = BASE . LAYOUT . CONTENT_PATH . CACHE . IMAGES; +$cache_folder = BASE . CONTENT_PATH . LAYOUT . CACHE . IMAGES; $web_folder = LAYOUT . CACHE . IMAGES; // rotate image first try { @@ -58,7 +58,7 @@ echo "
CLASS->CREATETHUMBNAILSIMPLE: " . basename($image) . ": WIDTH: $thumb_width
"; // static -$image = BASE . LAYOUT . CONTENT_PATH . IMAGES . 'no_picture.jpg'; +$image = BASE . CONTENT_PATH . LAYOUT . IMAGES . 'no_picture.jpg'; // rotate image first try { $image_class::correctImageOrientation($image); @@ -94,7 +94,7 @@ $images = array( // return mime type ala mimetype $finfo = new finfo(FILEINFO_MIME_TYPE); foreach ($images as $image) { - $image = BASE . LAYOUT . CONTENT_PATH . IMAGES . $image; + $image = BASE . CONTENT_PATH . LAYOUT . IMAGES . $image; list ($height, $width, $img_type) = \CoreLibs\Convert\SetVarType::setArray(getimagesize($image)); echo "
IMAGE INFO: " . $height . "x" . $width . ", TYPE: " . \CoreLibs\Debug\Support::dumpVar($img_type) . " [" . $finfo->file($image) . "]
"; diff --git a/www/lib/CoreLibs/Output/Image.php b/www/lib/CoreLibs/Output/Image.php index 4114494e..9fd82619 100644 --- a/www/lib/CoreLibs/Output/Image.php +++ b/www/lib/CoreLibs/Output/Image.php @@ -204,11 +204,11 @@ class Image E_USER_DEPRECATED ); // NOTE: we need to depracte this - $cache_folder = BASE . LAYOUT . CONTENT_PATH . CACHE . IMAGES; + $cache_folder = BASE . CONTENT_PATH . LAYOUT . CACHE . IMAGES; $web_folder = LAYOUT . CACHE . IMAGES; if (!is_dir($cache_folder)) { if (false === mkdir($cache_folder)) { - $cache_folder = BASE . LAYOUT . CONTENT_PATH . CACHE; + $cache_folder = BASE . CONTENT_PATH . LAYOUT . CACHE; $web_folder = LAYOUT . CACHE; } }