aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorBart van Bragt <bartvb@users.sourceforge.net>2001-09-27 17:15:59 +0000
committerBart van Bragt <bartvb@users.sourceforge.net>2001-09-27 17:15:59 +0000
commit235c8b18cc329aa20aa29aca3b2a5a3bfef0abaa (patch)
treea9ccdece6fb003f63d335374f8022f1d08cd63a1 /phpBB/includes/functions.php
parentc27bd187989fa7763f60d319f8ac6f976eb5c484 (diff)
downloadforums-235c8b18cc329aa20aa29aca3b2a5a3bfef0abaa.tar
forums-235c8b18cc329aa20aa29aca3b2a5a3bfef0abaa.tar.gz
forums-235c8b18cc329aa20aa29aca3b2a5a3bfef0abaa.tar.bz2
forums-235c8b18cc329aa20aa29aca3b2a5a3bfef0abaa.tar.xz
forums-235c8b18cc329aa20aa29aca3b2a5a3bfef0abaa.zip
Error reporting on set_style()
git-svn-id: file:///svn/phpbb/trunk@1099 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 7fda06f86c..0c82e877a1 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -292,28 +292,28 @@ function setup_style($style)
WHERE themes_id = $style";
if(!$result = $db->sql_query($sql))
{
- return(FALSE);
+ message_die(CRITICAL_ERROR, "Couldn't query database for theme info.");
}
if( !$row = $db->sql_fetchrow($result) )
{
- return(FALSE);
+ message_die(CRITICAL_ERROR, "Couldn't get theme data for themes_id=$style.");
}
-// $template_path = ( defined("IN_ADMIN") ) ? "admin/templates/" : "templates/" ;
-// $template_name = ( defined("IN_ADMIN") ) ? $board_config['board_admin_template'] : $myrow['template_name'] ;
- $template_path = "templates/" ;
+// $template_path = ( defined('IN_ADMIN') ) ? 'admin/templates/' : 'templates/' ;
+// $template_name = ( defined('IN_ADMIN') ) ? $board_config['board_admin_template'] : $myrow['template_name'] ;
+ $template_path = 'templates/' ;
$template_name = $row['template_name'] ;
$template = new Template($phpbb_root_path . $template_path . $template_name);
if( $template )
{
- @include($phpbb_root_path . $template_path . $template_name . "/" . $template_name . ".cfg");
+ @include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');
if( !defined("TEMPLATE_CONFIG") )
{
- message_die(CRITICAL_ERROR, "Couldn't open " . $template_name . " template config file");
+ message_die(CRITICAL_ERROR, "Couldn't open $template_name template config file");
}
}
@@ -1082,4 +1082,4 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
}
-?> \ No newline at end of file
+?>