Ignore:
Timestamp:
Dec 6, 2008, 3:28:54 AM (15 years ago)
Author:
patdenice
Message:
  • Add a "Bound Template" column for template extensions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r2790 r2923  
    187187        $handle = $value[0];
    188188        $param = $value[1];
     189        $tpl = $value[2];
    189190      }
    190191      elseif (is_string($value))
     
    192193        $handle = $value;
    193194        $param = 'N/A';
     195        $tpl = 'N/A';
    194196      }
    195197      else
     
    199201
    200202      if ((stripos(implode('/',array_flip($_GET)), $param) > 0 or $param == 'N/A')
     203        and (preg_match('/'.preg_quote($tpl,'/').'$/', $this->get_template_dir()) or $tpl == 'N/A')
    201204        and (!isset($this->extents[$handle]) or $overwrite)
    202205        and file_exists($dir . $filename))
Note: See TracChangeset for help on using the changeset viewer.