|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
c960657 Smarty Regular
Joined: 07 May 2003 Posts: 75 Location: Copenhagen, Denmark
|
Posted: Tue Mar 30, 2004 1:16 pm Post subject: Debug console not displayed |
|
|
When $default_resource_type is different from "file", the debug console is not displayed. Instead I get the following error:
Quote: | Warning: Smarty error: unable to read resource: "/var/home/dr/www/smarty/debug.tpl" |
This can be fixed by explicitly specifying "file:" in core/core.display_debug_console.php line 24:
Code: |
if(empty($smarty->debug_tpl)) {
// set path to debug template from SMARTY_DIR
- $smarty->debug_tpl = SMARTY_DIR . 'debug.tpl';
+ $smarty->debug_tpl = 'file:' . SMARTY_DIR . 'debug.tpl';
if($smarty->security && is_file($smarty->debug_tpl)) {
$smarty->secure_dir[] = dirname(realpath($smarty->debug_tpl));
}
|
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Mar 30, 2004 2:37 pm Post subject: |
|
|
fixed in CVS, thanks. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|