From 886541aecfdee3aa7cc62c14f3e8aaca0b52fff4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 17 May 2012 19:07:33 +0000 Subject: [PATCH] die() expanded with __METHOD__ --- inc/classes/main/menu/class_BaseMenu.php | 2 +- inc/classes/main/parser/xml/class_XmlParser.php | 2 +- inc/loader/class_ClassLoader.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/classes/main/menu/class_BaseMenu.php b/inc/classes/main/menu/class_BaseMenu.php index 32a57c06..c41bdcb7 100644 --- a/inc/classes/main/menu/class_BaseMenu.php +++ b/inc/classes/main/menu/class_BaseMenu.php @@ -64,7 +64,7 @@ class BaseMenu extends BaseFrameworkSystem { // Render it here $this->getTemplateInstance()->renderXmlContent($menuContent); - //die('!OK'); + //die(__METHOD__ . ':!OK'); } /** diff --git a/inc/classes/main/parser/xml/class_XmlParser.php b/inc/classes/main/parser/xml/class_XmlParser.php index 6fb429ab..dab9f3af 100644 --- a/inc/classes/main/parser/xml/class_XmlParser.php +++ b/inc/classes/main/parser/xml/class_XmlParser.php @@ -102,7 +102,7 @@ class XmlParser extends BaseParser implements Parseable { // Now parse the XML tree if (!xml_parse($xmlParser, $content)) { // Error found in XML! - //* DEBUG: */ die('
'.htmlentities($content).'
'); + //* DEBUG: */ die(__METHOD__ . ':
'.htmlentities($content).'
'); throw new XmlParserException(array($this, $xmlParser), self::EXCEPTION_XML_PARSER_ERROR); } // END - if diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index f5cc2afd..4b46ffa8 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -271,7 +271,7 @@ class ClassLoader { // If the basePath is false it is invalid if ($basePath2 === false) { /* @todo: Do not die here. */ - die('Cannot read ' . $basePath . ' !'); + die(__METHOD__ . ':Cannot read ' . $basePath . ' !'); } else { // Set base path $basePath = $basePath2; -- 2.39.5