From 6ef6d4d63caee31f757d0b45df0863afce35f68a Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 12 Jun 2006 07:33:24 +0000 Subject: [PATCH] function check --- include/lang.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/lang.inc.php b/include/lang.inc.php index 91770e2..80a56ae 100644 --- a/include/lang.inc.php +++ b/include/lang.inc.php @@ -9,7 +9,9 @@ if (!defined('serendipity_LANG_LOADED') || serendipity_LANG_LOADED !== true) { if (@include(S9Y_INCLUDE_PATH . 'lang/' . $charset . 'serendipity_lang_'. $serendipity['lang'] .'.inc.php') ) { // Only here can we truely say the language is loaded define('serendipity_LANG_LOADED', true); - serendipity_db_reconnect(); + if (function_exists('serendipity_db_reconnect')) { + serendipity_db_reconnect(); + } } elseif (IS_installed === false || (defined('IS_up2date') && IS_up2date === false)) { /* -- Auto-Guess -- */ // If no config file is loaded, language includes are not available. // Now include one. Try to auto-guess the language by looking up the HTTP_ACCEPT_LANGUAGE. -- 2.39.5