Ignore:
Timestamp:
Jun 24, 2013, 6:16:53 AM (11 years ago)
Author:
rvelices
Message:

Smart 3 - fix per handle prefilters

File:
1 edited

Legend:

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

    r23476 r23495  
    766766  function set_prefilter($handle, $callback, $weight=50)
    767767  {
    768     $this->external_filters[$handle][$weight][] = array('prefilter', $callback);
     768    $this->external_filters[$handle][$weight][] = array('pre', $callback);
    769769    ksort($this->external_filters[$handle]);
    770770  }
     
    772772  function set_postfilter($handle, $callback, $weight=50)
    773773  {
    774     $this->external_filters[$handle][$weight][] = array('postfilter', $callback);
     774    $this->external_filters[$handle][$weight][] = array('post', $callback);
    775775    ksort($this->external_filters[$handle]);
    776776  }
     
    778778  function set_outputfilter($handle, $callback, $weight=50)
    779779  {
    780     $this->external_filters[$handle][$weight][] = array('outputfilter', $callback);
     780    $this->external_filters[$handle][$weight][] = array('output', $callback);
    781781    ksort($this->external_filters[$handle]);
    782782  }
Note: See TracChangeset for help on using the changeset viewer.