Ignore:
Timestamp:
Nov 24, 2012, 11:27:54 PM (11 years ago)
Author:
mistic100
Message:

don't redirect on picture page when the redirect tag is on category description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ExtendedDescription/main.inc.php

    r19065 r19159  
    8282{
    8383  global $conf, $page;
    84 
    85   if ($param != 'subcatify_category_description' and preg_match('#\[redirect (.*?)\]#i', $desc, $m1))
     84 
     85  if (
     86    $param != 'subcatify_category_description'
     87    and ( script_basename() != 'picture' or $param != 'main_page_category_description' )
     88    and preg_match('#\[redirect (.*?)\]#i', $desc, $m1)
     89  )
    8690  {
    8791    if (preg_match('#^(img|cat|search)=(\d*)\.?(\d*|)$#i', $m1[1], $m2))
     
    199203
    200204// Remove a category
    201 function ext_remove_cat($tpl_var, $categories)
     205function ext_remove_cat($tpl_var)
    202206{
    203207  global $conf;
Note: See TracChangeset for help on using the changeset viewer.