Development

Changeset 6202

You must first sign up to be able to contribute.

Changeset 6202

Show
Ignore:
Timestamp:
11/29/07 11:32:33 (1 year ago)
Author:
fabien
Message:

removed the loading of the Form helper when compat_10 is false

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/view/sfPHPView.class.php

    r5090 r6202  
    2828 
    2929  /** 
    30    * Load core and standard helpers to be use in the template. 
     30   * Loads core and standard helpers to be use in the template. 
    3131   */ 
    3232  protected function loadCoreAndStandardHelpers() 
     
    4444 
    4545    $helpers = array_unique(array_merge($core_helpers, $standard_helpers)); 
     46 
     47    // remove default Form helper if compat_10 is false 
     48    if (!sfConfig::get('sf_compat_10') && false !== $i = array_search('Form', $helpers)) 
     49    { 
     50      unset($helpers[$i]); 
     51    } 
     52 
    4653    sfLoader::loadHelpers($helpers); 
    4754  }