aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2013-06-24 04:16:53 +0000
committerrvelices <rv-github@modusoptimus.com>2013-06-24 04:16:53 +0000
commitd12e519e1a4a2bd2a5b7edf2716c32b80413a1b5 (patch)
treed24146dcbe4d511da856218c0de5fa8d1e4fc3c5
parentbaf745c4ab5e61e716b385930799632e8c6cb57c (diff)
Smart 3 - fix per handle prefilters
git-svn-id: http://piwigo.org/svn/trunk@23495 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/template.class.php6
1 files changed, 3 insertions, 3 deletions
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]);
}