v1.2 edit template saves in wrong place

Discussion in 'General Support' started by Aucsta.com, Jun 22, 2016.

  1. Aucsta.com

    Aucsta.com Guest

    Please help I'm running version 1.2, when i edit a theme template for my main site and save it and clear cache the file moves to the admin theme folder so i have search for it and move it into the right folder it is so annoying because its taking me longer to do anything.
     
  2. Randall

    Randall New Member

    Joined:
    Jun 23, 2016
    Messages:
    8
    Likes Received:
    4
    Hi,
    I ran into this same bug, but it's an easy fix. The variable {THEME} is defined in both "theme.php" and again in "header.php". The latter is called after the variable is already defined in "theme.php", so it gets overwritten. I simply changed the name to {ETHEME} (line 140 in "theme.php" and line 27 in "theme.tpl"). The variable is now specific to the "theme.php" script and the problem is eliminated.
    line 140 in theme.php old= 'THEME' => isset($theme) ? $theme : '',
    line 140 in theme.php new= 'ETHEME' => isset($theme) ? $theme : '',
    line 27 in theme.tpl old= <input type="hidden" name="theme" value="{THEME}">
    line 27 in theme.tpl new= <input type="hidden" name="theme" value="{ETHEME}">
     
    renlok likes this.

Share This Page