Fehler beim Styles einstellen
Verfasst: 06.10.2003 20:30
wollte gerade ein neues style einstellen (classic) und plötzlich kommt ein Fehler und ich komm nirgends mehr drauf
phpBB : Critical Error
Could not open classic template config file
DEBUG MODE
Line : 325
File : /home/www/web26/html/forum/includes/functions.php
kann mir da jemand weiterhelfen
so sieht der php code aus, wenns weiterhilft
Bitte
phpBB : Critical Error
Could not open classic template config file
DEBUG MODE
Line : 325
File : /home/www/web26/html/forum/includes/functions.php
kann mir da jemand weiterhelfen
so sieht der php code aus, wenns weiterhilft
Code: Alles auswählen
function setup_style($style)
{
global $db, $board_config, $template, $images, $phpbb_root_path;
$sql = "SELECT *
FROM " . THEMES_TABLE . "
WHERE themes_id = $style";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not query database for theme info');
}
if ( !($row = $db->sql_fetchrow($result)) )
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
$template_path = 'templates/' ;
$template_name = $row['template_name'] ;
$template = new Template($phpbb_root_path . $template_path . $template_name);
if ( $template )
{
$current_template_path = $template_path . $template_name;
@include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg');
if ( !defined('TEMPLATE_CONFIG') )
{
message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__);
}
Code: Alles auswählen
verwenden[/color]