if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Could not update user theme info');
}
}
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
}
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
}
Burada yukarda görüldüğü gibi ELSE o değilse bu kodu konarak iki kere aynı hata çıktısı veilmiş şu ;
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id
yANi tema açılamıyor gibisinden bir hata. Biz buradaki kod fazlalığını kaldırıyoruz yani şunu ;
else
{
message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]");
}
Bu şekilde fazla koddan arındırılmış şekilde kullanıyoruz phpBB forumumuzu bu arada deniyoruzx hemen tamamızı siliyoruz acaba hata verecek mi ?
Evet tamda tahmin etitğimiz gibi hatayı verdi ;
Could not open Sailormoon template config file
DEBUG MODE
Line : 634
File : functions.php
Bu yöntem NEFRİT tarafınbdan bulunmuştur amaç kod fazlalığını kaldırıp daha verimli performanslı bir phpBB elde etmektir. Herkese hayırlı uğurlu olsun