page: api attribute indicate index requests
[minimedit.git] / thumb / index.php
index 42e9362e41fb762085050fa62881a7c008699dea..9232b3332be5de1c33370705b4ea41e273b427d3 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-if (!$User) return;
+if ($Page->api) return;
 $imgpath = ltrim($Page->path, '/');
 if (!preg_match('{^[0-9x]+/}', $imgpath)) {
        return;