Closed nervetattoo closed 12 years ago
If the project is located in e.g /var/www/gaia-admin/www/ the path will be /var/gaia-admin.
Code in question: $projectPath = getcwd(); // Replace "www" with "config" and add trailling slash $projectPath = preg_replace("/www\/?/", "", $projectPath);
Possible fix: $projectPath = preg_replace("/www\/?$/", "", $projectPath);
Possible fix already applied
If the project is located in e.g /var/www/gaia-admin/www/ the path will be /var/gaia-admin.
Code in question: $projectPath = getcwd(); // Replace "www" with "config" and add trailling slash $projectPath = preg_replace("/www\/?/", "", $projectPath);
Possible fix: $projectPath = preg_replace("/www\/?$/", "", $projectPath);