mirror of
https://github.com/e107inc/e107.git
synced 2025-07-28 10:20:45 +02:00
Correct parser hooking logic
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_handlers/e_parse_class.php,v $
|
||||
| $Revision: 1.36 $
|
||||
| $Date: 2008-07-17 19:17:44 $
|
||||
| $Revision: 1.37 $
|
||||
| $Date: 2008-08-17 15:04:20 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -782,9 +782,10 @@ class e_parse
|
||||
|
||||
|
||||
//Run any hooked in parsers
|
||||
if (!$opts['no_hook'] && varset($pref['tohtml_hook']))
|
||||
if (!$opts['no_hook'])
|
||||
{
|
||||
//Process the older tohtml_hook pref (deprecated)
|
||||
if ( varset($pref['tohtml_hook']))
|
||||
{ //Process the older tohtml_hook pref (deprecated)
|
||||
foreach(explode(",",$pref['tohtml_hook']) as $hook)
|
||||
{
|
||||
if (!is_object($this->e_hook[$hook]))
|
||||
@@ -795,6 +796,7 @@ class e_parse
|
||||
}
|
||||
$sub_blk = $this->e_hook[$hook]->$hook($sub_blk,$opts['context']);
|
||||
}
|
||||
}
|
||||
|
||||
if(isset($pref['e_tohtml_list']) && is_array($pref['e_tohtml_list']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user