Changeset 1846


Ignore:
Timestamp:
Feb 21, 2007, 6:46:56 AM (17 years ago)
Author:
rvelices
Message:
  • added check in redirect to see if headers have been sent before doing a redirect_http
  • old category.php uses redirect_http whenever possible
  • replaced some old {L_xxx} in picture.tpl
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/category.php

    r1288 r1846  
    5757}
    5858
    59 redirect ( make_index_url($url_params) );
     59$url = make_index_url($url_params);
     60if (!headers_sent())
     61{
     62  set_status_header(302);
     63  redirect_http( $url );
     64}
     65redirect ( $url );
    6066
    6167?>
  • trunk/include/functions.inc.php

    r1844 r1846  
    690690
    691691  // with RefeshTime <> 0, only html must be used
    692   if (($conf['default_redirect_method'] == 'http') and ($refresh_time == 0))
     692  if ($conf['default_redirect_method']=='http'
     693      and $refresh_time==0
     694      and !headers_sent()
     695    )
    693696  {
    694697    redirect_http($url);
  • trunk/template/yoga/picture.tpl

    r1789 r1846  
    4545<!-- END last_unactive -->
    4646<!-- BEGIN next -->
    47   <a class="navButton next" href="{next.U_IMG}" title="{L_NEXT_IMG}{next.TITLE_IMG}" rel="next"><img src="{pwg_root}{themeconf:icon_dir}/right.png" class="button" alt="{lang:next_page}"></a>
     47  <a class="navButton next" href="{next.U_IMG}" title="{lang:next_page} : {next.TITLE_IMG}" rel="next"><img src="{pwg_root}{themeconf:icon_dir}/right.png" class="button" alt="{lang:next_page}"></a>
    4848<!-- END next -->
    4949<!-- BEGIN next_unactive -->
    5050  <a class="navButton next"><img src="{pwg_root}{themeconf:icon_dir}/right_unactive.png" class="button" alt="{lang:next_page}"></a>
    5151<!-- END next_unactive -->
    52   <a class="navButton up" href="{U_UP}" title="{lang:thumbnails}" rel="up"><img src="{pwg_root}{themeconf:icon_dir}/up.png" class="button" alt="{L_UP_ALT}"></a>
     52  <a class="navButton up" href="{U_UP}" title="{lang:thumbnails}" rel="up"><img src="{pwg_root}{themeconf:icon_dir}/up.png" class="button" alt="{lang:thumbnails}"></a>
    5353<!-- BEGIN previous -->
    54   <a class="navButton prev" href="{previous.U_IMG}" title="{L_PREV_IMG}{previous.TITLE_IMG}" rel="prev"><img src="{pwg_root}{themeconf:icon_dir}/left.png" class="button" alt="{lang:previous_page}"></a>
     54  <a class="navButton prev" href="{previous.U_IMG}" title="{lang:previous_page} : {previous.TITLE_IMG}" rel="prev"><img src="{pwg_root}{themeconf:icon_dir}/left.png" class="button" alt="{lang:previous_page}"></a>
    5555<!-- END previous -->
    5656<!-- BEGIN previous_unactive -->
Note: See TracChangeset for help on using the changeset viewer.