Changeset 3208 for branches/2.0


Ignore:
Timestamp:
Mar 16, 2009, 6:53:20 PM (15 years ago)
Author:
patdenice
Message:

merge r3207 from trunk to branch 2.0.
Add "tags" parameter for template extensions

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/admin/extend_for_templates.php

    r3183 r3208  
    6161    'search',
    6262    'flat',
    63     'list',); /* <=> Random */
     63    'list', /* <=> Random */
     64    'tags',
     65    );
    6466  $query = '
    6567SELECT permalink
  • branches/2.0/include/template.class.php

    r3191 r3208  
    200200      }
    201201
    202       if ((stripos(implode('/',array_keys($_GET)), $param) > 0 or $param == 'N/A')
     202      if ((stripos(implode('',array_keys($_GET)), '/'.$param) !== false or $param == 'N/A')
    203203        and (preg_match('/'.preg_quote($tpl,'/').'$/', $this->get_template_dir()) or $tpl == 'N/A')
    204204        and (!isset($this->extents[$handle]) or $overwrite)
Note: See TracChangeset for help on using the changeset viewer.