die() expanded with __METHOD__
authorRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 19:07:33 +0000 (19:07 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 19:07:33 +0000 (19:07 +0000)
inc/classes/main/menu/class_BaseMenu.php
inc/classes/main/parser/xml/class_XmlParser.php
inc/loader/class_ClassLoader.php

index 32a57c06e94c1a98497a47f30d569e3e0c209a43..c41bdcb786e02b589ae780f018a20c74bf290f54 100644 (file)
@@ -64,7 +64,7 @@ class BaseMenu extends BaseFrameworkSystem {
 
                // Render it here
                $this->getTemplateInstance()->renderXmlContent($menuContent);
-               //die('!OK');
+               //die(__METHOD__ . ':!OK');
        }
 
        /**
index 6fb429ab99ddf755a9ea88bc6b01e220b6baface..dab9f3af6c74e6fef126d902d4b8ff13bd733898 100644 (file)
@@ -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('<pre>'.htmlentities($content).'</pre>');
+                       //* DEBUG: */ die(__METHOD__ . ':<pre>'.htmlentities($content).'</pre>');
                        throw new XmlParserException(array($this, $xmlParser), self::EXCEPTION_XML_PARSER_ERROR);
                } // END - if
 
index f5cc2afd206c40cbce5e3b681059bdd4b1d897d3..4b46ffa801f5e09e629cba3453051b23dcbc0300 100644 (file)
@@ -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;