diff --git a/lib/classes/aps/class.ApsParser.php b/lib/classes/aps/class.ApsParser.php index 40811f32..dd74b6dc 100644 --- a/lib/classes/aps/class.ApsParser.php +++ b/lib/classes/aps/class.ApsParser.php @@ -37,6 +37,7 @@ class ApsParser private $userinfo = array(); private $settings = array(); private $db = false; + private $RootDir = ''; /** * Constructor of class, setup basic variables needed by the class @@ -51,6 +52,7 @@ class ApsParser $this->settings = $settings; $this->userinfo = $userinfo; $this->db = $db; + $this->RootDir = dirname(dirname(dirname(dirname(__FILE__)))) . '/'; } /** @@ -793,7 +795,8 @@ class ApsParser } else { - $Errors[] = $lng['aps']['moveproblem']; + $moveproblem = str_replace('{$path}', $this->RootDir, $lng['aps']['moveproblem']); + $Errors[] = $moveproblem; } } @@ -1688,10 +1691,11 @@ class ApsParser $Error.= '
  • ' . $lng['aps']['class_zip_missing'] . '
  • '; } - if(!is_writable('./temp/') - || !is_writable('./packages/')) + if(!is_writable($this->RootDir.'temp/') + || !is_writable($this->RootDir.'packages/')) { - $Error.= '
  • ' . $lng['aps']['dir_permissions'] . '
  • '; + $dirpermission = str_replace('{$path}', $this->RootDir, $lng['aps']['dir_permissions']); + $Error.= '
  • ' . $dirpermission . '
  • '; } if($Error != '') diff --git a/lng/english.lng.php b/lng/english.lng.php index af1fe1e1..2e52918b 100644 --- a/lng/english.lng.php +++ b/lng/english.lng.php @@ -1110,7 +1110,7 @@ $lng['aps']['invalidzipfile'] = 'Errors for %s