New Zenner
- Join Date:
- Feb 2007
- Posts:
- 1
- Plugin Contributions:
- 0
[Done v1.3.8] Bug in 1.3.7 when moving Admin folder out of catalog
When moving the Admin folder out of the catalog directory, the "Tools -> Email Welcome" page breaks.
Original:
admin/email_welcome.php @ lines 28 - 32
if (file_exists('../' . DIR_WS_LANGUAGES . $_SESSION['language'] . (($template_dir=='') ? '' : '/'.$template_dir) .'/' . 'create_account.php')) {
require('../' . DIR_WS_LANGUAGES . $_SESSION['language'] . (($template_dir=='') ? '' : '/'.$template_dir) . '/' . 'create_account.php');
} else {
require('../' . DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . 'create_account.php');
}
```Suggested Fix:
```php
if (file_exists(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . (($template_dir=='') ? '' : '/'.$template_dir) .'/' . 'create_account.php')) {
require(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . (($template_dir=='') ? '' : '/'.$template_dir) . '/' . 'create_account.php');
} else {
require(DIR_FS_CATALOG . DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . 'create_account.php');
}