Nooku Framework is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

nooku-framework

Commit 4503

User picture
  • Author: johanjanssens
  • 2012-02-25 05:00 (about 2 years ago)

re #223 : Override _tokenValue() to call JUtility::getToken() for Joomla compatibility.

Files Affected

 
45024503
19
 */
19
 */
20
class ComDefaultTemplateFilterForm extends KTemplateFilterForm
20
class ComDefaultTemplateFilterForm extends KTemplateFilterForm
21
{
21
{
22
    /**
22
    protected function _tokenValue($force = false)
23
     * Initializes the options for the object
 
 
24
     *
 
 
25
     * Called from {@link __construct()} as a first step of object instantiation.
 
 
26
     *
 
 
27
     * @param   object  An optional KConfig object with configuration options
 
 
28
     * @return void
 
 
29
     */
 
 
30
    protected function _initialize(KConfig $config)
 
 
31
    {
23
    {
32
        $config->append(array(
24
        if(empty($this->_token_value) || $force) {  
33
            'token_value'   => JUtility::getToken(),
25
            $this->_token_value = JUtility::getToken($force);
34
        ));
26
        }
35
 
27
        
36
        parent::_initialize($config);
28
        return parent::_tokenValue($force);
37
    }
29
    }
38
}
30
}