Ignore:
Timestamp:
Feb 9, 2012, 10:11:34 PM (13 years ago)
Author:
rvelices
Message:
  • remove square/thumb from choices on picture
  • fix content margin on password register
  • purge derivative cache by type of derivative
  • session saved infos/messages are not given to the page on html redirections
  • shorter/faster code in functions_xxx
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/page_header.php

    r12922 r13074  
    6767
    6868// No referencing is required
    69 if ( !$conf['meta_ref'] ) 
     69if ( !$conf['meta_ref'] )
    7070{
    7171  $page['meta_robots']['noindex'] = 1;
     
    8282}
    8383if ( !isset($page['meta_robots']['noindex']) )
    84 { 
    85   $template->assign('meta_ref',1); 
     84{
     85  $template->assign('meta_ref',1);
    8686}
    8787
     
    9898      ));
    9999}
     100else
     101{// messages only if no redirection
     102  foreach (array('errors','infos') as $mode)
     103  {
     104    if (isset($_SESSION['page_'.$mode]))
     105    {
     106      $page[$mode] = array_merge($page[$mode], $_SESSION['page_'.$mode]);
     107      unset($_SESSION['page_'.$mode]);
     108    }
    100109
    101 
    102 // messages
    103 foreach (array('errors','infos') as $mode)
    104 {
    105   if (isset($_SESSION['page_'.$mode]))
    106   {
    107     $page[$mode] = array_merge($page[$mode], $_SESSION['page_'.$mode]);
    108     unset($_SESSION['page_'.$mode]);
    109   }
    110  
    111   if (count($page[$mode]) != 0)
    112   {
    113     $template->assign($mode, $page[$mode]);
     110    if (count($page[$mode]) != 0)
     111    {
     112      $template->assign($mode, $page[$mode]);
     113    }
    114114  }
    115115}
    116 
    117116trigger_action('loc_end_page_header');
    118117
Note: See TracChangeset for help on using the changeset viewer.