Development

Changeset 10113

You must first sign up to be able to contribute.

Changeset 10113

Show
Ignore:
Timestamp:
07/03/08 23:51:08 (2 months ago)
Author:
Leon.van.der.Ree
Message:

Added option to exclude js-files from packaging
addes security.yml-config to exclude it from sfGuard!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfCombineFilterPlugin/branches/kraven/config/app.yml

    r10111 r10113  
    11all: # these are the defaults, you should override them in your application/config/app.yml file 
    22  sf_combine_filter_plugin: 
    3     css_filtered_paths:          [] # you probably want to end your paths (comma seperated) with a / 
     3    css_filtered_paths:          []           # you probably want to end your paths (comma seperated) with a / 
     4    js_exclude_files:            [tiny_mce]   # you probably want E.G. tiny_mce in here, so I did this for you ;-) 
  • plugins/sfCombineFilterPlugin/branches/kraven/lib/sfCombineFilter.class.php

    r10111 r10113  
    7676          $path = _compute_public_path($file, 'js', 'js'); 
    7777 
     78          // do not include, when in exclude array 
     79          foreach (sfConfig::get('app_sf_combine_filter_plugin_js_exclude_files', array()) as $exclude) 
     80          { 
     81            if (strpos($path, $exclude)!==false) continue 2; 
     82          } 
     83 
    7884          if ((!$root_js_only && !strpos($path, '://')&& strpos($path, '.js')) || ($root_js_only && strpos($path, $this->sf_relative_url_root.'/js/') === 0)) { 
    7985            $element = ($root_js_only ? preg_replace("/^".str_replace('/', '\/', $this->sf_relative_url_root.'/js/')."/i", '', $path) : $path);