]> git.mjollnir.org Git - s9y.git/commitdiff
function check
authorgarvinhicking <garvinhicking>
Mon, 12 Jun 2006 07:33:24 +0000 (07:33 +0000)
committergarvinhicking <garvinhicking>
Mon, 12 Jun 2006 07:33:24 +0000 (07:33 +0000)
include/lang.inc.php

index 91770e2ab23a591340594febea1b3db98f771ca0..80a56ae4c814a811376bcb8c0e94a33ce822bf82 100644 (file)
@@ -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.