page: replace global variables by $Page object
[minimedit.git] / thumb / index.php
index 63812591820b30be0d43ec92c6baf420f6257d36..104e1df53009d99187019e7129e615d9d12c19ac 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-list ($size, $imgpath) = explode('/', ltrim($Args, '/'), 2);
+list ($size, $imgpath) = explode('/', ltrim($Page->path, '/'), 2);
 $imgpath = preg_replace('{^(?=[0-9]+/)}', 'data/', $imgpath, 1);
 
 if (!file_exists($imgpath)) {