Index: branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r7472 -r7501 --- branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 7472) +++ branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 7501) @@ -652,6 +652,19 @@ { return (int)$this->Application->ConfigValue('UseToolbarLabels'); } + + /** + * Checks if debug mode enabled (optionally) and specified constant is on + * + * @param Array $params + * @return bool + */ + function ConstOn($params) + { + $constant_name = $this->SelectParam($params, 'name,const'); + $debug_mode = isset($params['debug_mode']) && $params['debug_mode'] ? $this->Application->isDebugMode() : true; + return $debug_mode && constOn($constant_name); + } } ?> \ No newline at end of file