URL variable $urldir dissapears in custom templates (v. 2.9 - 2.91)

If the URL directory variable include () is used in a custom template, it is stripped out in the template conversion process. To correct this:

  1. Open the open.php file in the /includes/ folder of the /storeadmin/ folder.

  2. Remove the following code (around line 371):

    // OLD PRE-PHP 7 SCRIPT TAGS
    $createtemplate = str_replace('', '.php"); ?>', $createtemplate);