From 864b793c594c0aff7691181565229011d5724aa8 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Sat, 1 May 2004 07:55:00 +0000 Subject: [PATCH] Use PATH_INFO instead of REQUEST_URI for better windows compatibility. git-svn-id: http://svn.automattic.com/wordpress/trunk@1219 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index 6bde0423fa..d038038904 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -31,7 +31,7 @@ require_once (ABSPATH . WPINC . '/wp-db.php'); $wpdb->hide_errors(); $users = $wpdb->get_results("SELECT * FROM $tableusers"); -if (!$users && !strstr($_SERVER['REQUEST_URI'], 'install.php')) { +if (!$users && !strstr($_SERVER['PHP_SELF'], 'install.php')) { die("It doesn't look like you've installed WP yet. Try running install.php."); } $wpdb->show_errors(); @@ -43,7 +43,7 @@ require (ABSPATH . WPINC . '/links.php'); require (ABSPATH . WPINC . '/kses.php'); require_once (ABSPATH . WPINC . '/wp-l10n.php'); -if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/import')) { +if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) { $querystring_start = '?'; $querystring_equal = '='; @@ -63,7 +63,7 @@ if (get_settings('hack_file')) { require(ABSPATH . '/my-hacks.php'); } -if (!strstr($_SERVER['REQUEST_URI'], 'wp-admin/plugins.php') && get_settings('active_plugins')) { +if (!strstr($_SERVER['PHP_SELF'], 'wp-admin/plugins.php') && get_settings('active_plugins')) { $current_plugins = explode("\n", (get_settings('active_plugins'))); foreach ($current_plugins as $plugin) { if (file_exists(ABSPATH . 'wp-content/plugins/' . $plugin))