Forums / Bug Reports / [Done v1.3.8] Bug in 1.3.7 when moving Admin folder out of catalog

[Done v1.3.8] Bug in 1.3.7 when moving Admin folder out of catalog

Locked

Started by riptuer on 15 Feb 2007, 3:24 PM · Views: 2,474

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
15 Feb 2007, 3:24 PM
#1
riptuer avatar

riptuer

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');
  }
18 Feb 2007, 4:22 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: [Done v1.3.8] Bug in 1.3.7 when moving Admin folder out of catalog

Don'tcha hate when you write a peice of quickie code for convenience and forget to go back and clean it all up? :eek:

Gads ... how embarrassing ... :cry:

Thanks for the update on this ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!