From d12e519e1a4a2bd2a5b7edf2716c32b80413a1b5 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 24 Jun 2013 04:16:53 +0000 Subject: Smart 3 - fix per handle prefilters git-svn-id: http://piwigo.org/svn/trunk@23495 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/template.class.php') diff --git a/include/template.class.php b/include/template.class.php index 82d0c1f05..6fab611c5 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -765,19 +765,19 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa */ function set_prefilter($handle, $callback, $weight=50) { - $this->external_filters[$handle][$weight][] = array('prefilter', $callback); + $this->external_filters[$handle][$weight][] = array('pre', $callback); ksort($this->external_filters[$handle]); } function set_postfilter($handle, $callback, $weight=50) { - $this->external_filters[$handle][$weight][] = array('postfilter', $callback); + $this->external_filters[$handle][$weight][] = array('post', $callback); ksort($this->external_filters[$handle]); } function set_outputfilter($handle, $callback, $weight=50) { - $this->external_filters[$handle][$weight][] = array('outputfilter', $callback); + $this->external_filters[$handle][$weight][] = array('output', $callback); ksort($this->external_filters[$handle]); } -- cgit v1.2.3