private static function isActive() { if (!self::$_is_init) { if (defined('INSTALL')) { self::$debug = 1; self::$debug_level = 1; } else { if (class_exists('Registry')) { $registry = Registry::getInstance(); if ($registry->has('config')) { if ($registry->get('config')->has('config_debug')) { self::$debug = $registry->get('config')->get('config_debug'); } if ($registry->get('config')->has('config_debug_level')) { self::$debug_level = $registry->get('config')->get('config_debug_level'); } } } } self::$_is_init = true; } return self::$debug; }