]> git.mjollnir.org Git - s9y.git/commitdiff
some path fixes
authorgarvinhicking <garvinhicking>
Mon, 16 Jan 2006 18:45:31 +0000 (18:45 +0000)
committergarvinhicking <garvinhicking>
Mon, 16 Jan 2006 18:45:31 +0000 (18:45 +0000)
include/functions_installer.inc.php
serendipity.css.php

index 9ed4137eee8894c28f6ab2bd40e0874dcc04ef72..6c90eb822754df973369bb5fcb183208cbf5813b 100644 (file)
@@ -677,7 +677,7 @@ function serendipity_checkInstallation() {
     $serendipity['dbType'] = $_POST['dbType'];
     // Probe database
     // (do it after the dir stuff, as we need to be able to create the sqlite database)
-    include_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
+    @include_once($_POST['serendipityPath'] . 'include/db/db.inc.php');
     // For shared installations, probe the file on include path
     include_once(S9Y_INCLUDE_PATH . 'include/db/db.inc.php');
 
index 17dea0d78ac51aef964badea506fa89957b1c6e4..962415fa26edf7961d834c60bea247106f73089c 100644 (file)
@@ -58,7 +58,7 @@ if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
 header('Content-type: text/css');
 
 if (IS_installed === false) {
-    if (file_exists('templates/' . $serendipity['defaultTemplate'] . '/' . $css_file)) {
+    if (file_exists(S9Y_INCLUDE_PATH . 'templates/' . $serendipity['defaultTemplate'] . '/' . $css_file)) {
         echo serendipity_printStylesheet('templates/' . $serendipity['defaultTemplate'] . '/' . $css_file);
     }
     die();