From e3c80ba24d088d7c8cd300e01356e9f87465ee39 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 6 Mar 2009 17:49:58 +0000 Subject: [PATCH] Fix for installation --- inc/functions.php | 4 ++-- inc/mysql-connect.php | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/functions.php b/inc/functions.php index dcdfdc6ea0..98eddd5d9b 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -47,8 +47,8 @@ function IS_INC_WRITEABLE ($inc) { return false; } // END - if - // Test write-access - return is_writeable($FQFN); + // Test write-access on directory + return is_writeable(dirname($FQFN)); } // Output HTML code directly or "render" it. You addionally switch the new-line character off diff --git a/inc/mysql-connect.php b/inc/mysql-connect.php index 0b60390d92..80d25fc12c 100644 --- a/inc/mysql-connect.php +++ b/inc/mysql-connect.php @@ -228,6 +228,9 @@ if ((!isInstalling()) && (isInstalled())) { // Run the init filter chain runFilterChain('init'); + + // Load extension 'sql_patches' + LOAD_EXTENSION("sql_patches"); } if ((getTotalFatalErrors() > 0) && (isInstalled()) && (!defined('mxchange_installing')) && ($GLOBALS['output_mode'] != "1")) { -- 2.39.5