Ignore:
Timestamp:
Jun 2, 2014, 9:55:46 AM (10 years ago)
Author:
mistic100
Message:

feature 3010 : replace trigger_action/event by trigger_notify/change

File:
1 edited

Legend:

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

    r27184 r28587  
    522522        $href .= '?v' . ($combi->version ? $combi->version : PHPWG_VERSION);
    523523      // trigger the event for eventual use of a cdn
    524       $href = trigger_event('combined_css', $href, $combi);
     524      $href = trigger_change('combined_css', $href, $combi);
    525525      $content[] = '<link rel="stylesheet" type="text/css" href="'.$href.'">';
    526526    }
     
    879879    }
    880880    // trigger the event for eventual use of a cdn
    881     $ret = trigger_event('combined_script', $ret, $script);
     881    $ret = trigger_change('combined_script', $ret, $script);
    882882    return embellish_url($ret);
    883883  }
     
    19351935      $handle = $this->type. '.' .$combinable->id;
    19361936      $template->set_filename($handle, realpath(PHPWG_ROOT_PATH.$combinable->path));
    1937       trigger_action( 'combinable_preparse', $template, $combinable, $this); //allow themes and plugins to set their own vars to template ...
     1937      trigger_notify( 'combinable_preparse', $template, $combinable, $this); //allow themes and plugins to set their own vars to template ...
    19381938      $content = $template->parse($handle, true);
    19391939
     
    19911991      $css = CssMin::minify($css, array('Variables'=>false));
    19921992    }
    1993     $css = trigger_event('combined_css_postfilter', $css);
     1993    $css = trigger_change('combined_css_postfilter', $css);
    19941994    return $css;
    19951995  }
Note: See TracChangeset for help on using the changeset viewer.