From 4bd32005b56f6ec741ceeed0a1745fe89f291085 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 2 Jun 2014 07:55:46 +0000 Subject: feature 3010 : replace trigger_action/event by trigger_notify/change git-svn-id: http://piwigo.org/svn/trunk@28587 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/template.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/template.class.php') diff --git a/include/template.class.php b/include/template.class.php index fec9cbd68..7deafb481 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -521,7 +521,7 @@ class Template if ($combi->version !== false) $href .= '?v' . ($combi->version ? $combi->version : PHPWG_VERSION); // trigger the event for eventual use of a cdn - $href = trigger_event('combined_css', $href, $combi); + $href = trigger_change('combined_css', $href, $combi); $content[] = ''; } $this->output = str_replace(self::COMBINED_CSS_TAG, @@ -878,7 +878,7 @@ var s,after = document.getElementsByTagName(\'script\')[document.getElementsByTa } } // trigger the event for eventual use of a cdn - $ret = trigger_event('combined_script', $ret, $script); + $ret = trigger_change('combined_script', $ret, $script); return embellish_url($ret); } @@ -1934,7 +1934,7 @@ final class FileCombiner global $template; $handle = $this->type. '.' .$combinable->id; $template->set_filename($handle, realpath(PHPWG_ROOT_PATH.$combinable->path)); - trigger_action( 'combinable_preparse', $template, $combinable, $this); //allow themes and plugins to set their own vars to template ... + trigger_notify( 'combinable_preparse', $template, $combinable, $this); //allow themes and plugins to set their own vars to template ... $content = $template->parse($handle, true); if ($this->is_css) @@ -1990,7 +1990,7 @@ final class FileCombiner require_once(PHPWG_ROOT_PATH.'include/cssmin.class.php'); $css = CssMin::minify($css, array('Variables'=>false)); } - $css = trigger_event('combined_css_postfilter', $css); + $css = trigger_change('combined_css_postfilter', $css); return $css; } -- cgit v1.2.3