]> git.mjollnir.org Git - s9y.git/commitdiff
Fix warning message when installing. Sigh.
authorgarvinhicking <garvinhicking>
Tue, 23 Aug 2005 09:30:50 +0000 (09:30 +0000)
committergarvinhicking <garvinhicking>
Tue, 23 Aug 2005 09:30:50 +0000 (09:30 +0000)
docs/NEWS
serendipity_config.inc.php

index a3d093cff8a9b1e097c92836331e86be42a9b4f5..9e8051b20c25e276759bb09b459aa0b1d24d5063 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -187,6 +187,11 @@ Version 0.9 ()
     * "Comments" Sidebar plugin can now have a custom title
       (garvinhicking)
 
+Version 0.8.5 ()
+------------------------------------------------------------------------
+
+   * Fix cosmetic warning message about missing S9Y_PEAR_PATH when
+     installing. (garvinhicking)
 
 Version 0.8.4 (August 19th, 2005)
 ------------------------------------------------------------------------
index a2269a7d176e3b27ad0d85ea87c83a95376f0c7d..6a91962777567fe12d86010edc3c4d18d8633cfa 100644 (file)
@@ -127,6 +127,20 @@ if ( !defined('IN_installer') && IS_installed === false ) {
     serendipity_die(sprintf(SERENDIPITY_NOT_INSTALLED, 'serendipity_admin.php'));
 }
 
+// Check whether local or global PEAR should be used. You can put a
+// $serendipity['use_PEAR'] = true;
+// in your serendipity_config_local.inc.php file to enable this.
+// The required PEAR (and other) packages are mentioned in the file
+// bundled-libs/.current_version
+$old_include = @ini_get('include_path');
+if (@ini_set('include_path', $old_include . PATH_SEPARATOR . $serendipity['serendipityPath'] . PATH_SEPARATOR . $serendipity['serendipityPath'] . 'bundled-libs/') && $serendipity['use_PEAR']) {
+    @define('S9Y_PEAR', true);
+    @define('S9Y_PEAR_PATH', '');
+} else {
+    @define('S9Y_PEAR', false);
+    @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
+}
+
 if (defined('IN_installer') && IS_installed === false) {
     $serendipity['lang'] = $serendipity['autolang'];
     $css_mode            = 'serendipity_admin.css';
@@ -149,20 +163,6 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['PHP_SELF']) . '/se
 
 define('IS_up2date', version_compare($serendipity['version'], $serendipity['versionInstalled'], '<='));
 
-// Check whether local or global PEAR should be used. You can put a
-// $serendipity['use_PEAR'] = true;
-// in your serendipity_config_local.inc.php file to enable this.
-// The required PEAR (and other) packages are mentioned in the file
-// bundled-libs/.current_version
-$old_include = @ini_get('include_path');
-if (@ini_set('include_path', $old_include . PATH_SEPARATOR . $serendipity['serendipityPath'] . PATH_SEPARATOR . $serendipity['serendipityPath'] . 'bundled-libs/') && $serendipity['use_PEAR']) {
-    @define('S9Y_PEAR', true);
-    @define('S9Y_PEAR_PATH', '');
-} else {
-    @define('S9Y_PEAR', false);
-    @define('S9Y_PEAR_PATH', S9Y_INCLUDE_PATH . 'bundled-libs/');
-}
-
 /*
  *  Include main functions
  */