Index: branches/5.1.x/core/kernel/nparser/nparser.php =================================================================== diff -u -N -r13487 -r13613 --- branches/5.1.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 13487) +++ branches/5.1.x/core/kernel/nparser/nparser.php (.../nparser.php) (revision 13613) @@ -1,6 +1,6 @@ DecorateBlock($ret, $params) : $ret; } + /** + * Checks, that given block is defined + * + * @param string $name + * @return bool + */ + function blockFound($name) + { + return array_key_exists($name, $this->Elements); + } + function DecorateBlock($block_content, $block_params, $is_template = false) { static $used_ids = Array (), $base_url = null;