// Leave loop when data is invalid or EOF?
if ((substr($value, 0, 6) == "theme-") && (substr($value, -4) == ".zip")) {
$name = substr($value, 6, -4);
- $file = sprintf("%sthemes/%s/theme.php", PATH, $name);
+ $file = sprintf("%sthemes/%s/theme.php", constant('PATH'), $name);
$ver = trim(substr($response[$idx + 3], 4));
// Load version