removed mods directory from the ATutor codebase
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / core / core.display_debug_console.php
diff --git a/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.display_debug_console.php b/mods/phpdoc2/PhpDocumentor/phpDocumentor/Smarty-2.6.0/libs/core/core.display_debug_console.php
deleted file mode 100644 (file)
index 252c447..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php\r
-/**\r
- * Smarty plugin\r
- * @package Smarty\r
- * @subpackage plugins\r
- */\r
-\r
-/**\r
- * Smarty debug_console function plugin\r
- *\r
- * Type:     core<br>\r
- * Name:     display_debug_console<br>\r
- * Purpose:  display the javascript debug console window\r
- * @param array Format: null\r
- * @param Smarty\r
- */\r
-function smarty_core_display_debug_console($params, &$smarty)\r
-{\r
-    // we must force compile the debug template in case the environment\r
-    // changed between separate applications.\r
-\r
-    if(empty($smarty->debug_tpl)) {\r
-        // set path to debug template from SMARTY_DIR\r
-        $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';\r
-        if($smarty->security && is_file($smarty->debug_tpl)) {\r
-            $smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl));\r
-        }\r
-    }\r
-\r
-    $_ldelim_orig = $smarty->left_delimiter;\r
-    $_rdelim_orig = $smarty->right_delimiter;\r
-\r
-    $smarty->left_delimiter = '{';\r
-    $smarty->right_delimiter = '}';\r
-\r
-    $_compile_id_orig = $smarty->_compile_id;\r
-    $smarty->_compile_id = null;\r
-\r
-    $_compile_path = $smarty->_get_compile_path($smarty->debug_tpl);\r
-    if ($smarty->_compile_resource($smarty->debug_tpl, $_compile_path))\r
-    {\r
-        ob_start();\r
-        $smarty->_include($_compile_path);\r
-        $_results = ob_get_contents();\r
-        ob_end_clean();\r
-    } else {\r
-        $_results = '';\r
-    }\r
-\r
-    $smarty->_compile_id = $_compile_id_orig;\r
-\r
-    $smarty->left_delimiter = $_ldelim_orig;\r
-    $smarty->right_delimiter = $_rdelim_orig;\r
-\r
-    return $_results;\r
-}\r
-\r
-/* vim: set expandtab: */\r
-\r
-?>\r