| Wednesday 22 July 2009 2:28:56 am 
                                                                
                                                                 Hi, Environment: ezp 4.1.3 php 5.2.10 apache 2.2.11 OS Debian 
I'm experiencing a strange problem: when caching (view, template) is enabled LastAccessUri is non set when you edit a content Item.To overcame this problem I modified index.php:
 original code: 
// Update last accessed view page
    if ( $currentURI != $lastAccessedViewURI and
         !in_array( $module->uiContextName(), array('edit',  'administration', 'browse', 'authentication' ) ) )
    {
         $http->setSessionVariable( "LastAccessesURI", $currentURI );
  
    }
modified code: 
// Update last accessed view page
    if ( $currentURI != $lastAccessedViewURI and
         !in_array( $module->uiContextName(), array('edit',  'administration', 'browse', 'authentication' ) ) )
    {
  if (strlen($currentURI)>0){
        $http->setSessionVariable( "LastAccessesURI", $currentURI );
  }
    }
Is this a bug?Should I report it?
 |