Changeset 10076


Ignore:
Timestamp:
04/05/11 19:08:01 (9 years ago)
Author:
patdenice
Message:

Bug with main block hidden

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/functions.inc.php

    r9736 r10076  
    148148function hide_main_block_prefilter($content, $smarty) 
    149149{ 
    150   return preg_replace('#<div id="content" class="content">.*</div> <!-- content -->#s', '', $content); 
     150  return preg_replace('#(?:<div id="content" class="content">|<div id="subcontent">).*</div>[ \{\*]*<!-- (?:sub|)content -->[ \*\}]*#si', '', $content); 
    151151} 
    152152 
Note: See TracChangeset for help on using the changeset viewer.