mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
Smart 3 - fix per handle prefilters
git-svn-id: http://piwigo.org/svn/trunk@23495 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user