Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2007
    Posts
    1
    Plugin Contributions
    0

    Default [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
    PHP Code:
      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 Code:
      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');
      } 

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: 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?

    Gads ... how embarrassing ...

    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!

 

 

Similar Threads

  1. Replies: 1
    Last Post: 28 Sep 2010, 09:24 PM
  2. Problem when moving zen cart to another folder
    By AHeartForTheEarth in forum General Questions
    Replies: 12
    Last Post: 11 Nov 2008, 04:25 PM
  3. Replies: 3
    Last Post: 14 Jan 2008, 03:18 PM
  4. Replies: 0
    Last Post: 10 Jul 2007, 08:28 PM
  5. Problem when moving cart to new folder ...
    By pstarling in forum General Questions
    Replies: 5
    Last Post: 13 Dec 2006, 10:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg