Ignore:
Timestamp:
Apr 5, 2011, 7:08:01 PM (14 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.