Changeset 40b2a4


Ignore:
Timestamp:
04/25/15 10:06:14 (2 years ago)
Author:
pierre-alain <pierre-alain@…>
Branches:
master
Children:
e5adc0
Parents:
b4dddd
git-author:
pierre-alain <pierre-alain@…> (04/25/15 10:06:14)
git-committer:
pierre-alain <pierre-alain@…> (04/25/15 10:06:14)
Message:

fixing back url not working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OWR/Includes/Themes/Original/Theme.php

    r4905ce r40b2a4  
    4343        $datas['login'] = true; 
    4444        $this->_view->addBlock('js', 'footer', $this->_view->get('footer', $datas, null, $noCacheDatas)); 
     45        if(isset($noCacheDatas['back'])) 
     46        { // we need to take off the back url else it will be overriden by the global index page cache 
     47            $back = $noCacheDatas['back']; 
     48            unset($noCacheDatas['back']); 
     49        } 
    4550        $this->_view->addBlock('login', 'contents', $this->_view->get(__FUNCTION__, $datas, null, $noCacheDatas)); 
    4651        $noCacheDatas['token'] = User::iGet()->getToken(); 
     52        if(isset($back)) // bring it back here for the global page 
     53            $noCacheDatas['back'] = $back; 
    4754 
    4855        return $this->_view->get('index', $datas, null, $noCacheDatas); 
Note: See TracChangeset for help on using the changeset viewer.