diff --git a/lib/shop.lib.php b/lib/shop.lib.php
index e0dad79a5..68dd1ba72 100644
--- a/lib/shop.lib.php
+++ b/lib/shop.lib.php
@@ -211,12 +211,12 @@ function get_large_image($img, $it_id, $btn_image=true)
{
global $g4;
- if (file_exists("$g4[path]/data/item/$img") && $img != "")
+ if (file_exists(G4_DATA_PATH."/item/$img") && $img != "")
{
- $size = getimagesize("$g4[path]/data/item/$img");
+ $size = getimagesize(G4_DATA_PATH."/item/$img");
$width = $size[0];
$height = $size[1];
- $str = "";
+ $str = "";
if ($btn_image)
$str .= "
";
}