com web/php: Used our standard includes format (which uses DOCUMENT_ROOT): quickref.php results.php

From: Date: Thu, 02 Aug 2012 17:28:20 +0000
Subject: com web/php: Used our standard includes format (which uses DOCUMENT_ROOT): quickref.php results.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-14044@lists.php.net to get a copy of this message
Commit: f52321368b879d9eac073faf460e2f32cab5c022 Author: Philip Olson <philip@php.net> Thu, 2 Aug 2012 10:28:20 -0700 Parents: 51b7a544f9210c9c248d68d6174ee8a9a8340a4c Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f52321368b879d9eac073faf460e2f32cab5c022 Log: Used our standard includes format (which uses DOCUMENT_ROOT) Changed paths: M quickref.php M results.php Diff: diff --git a/quickref.php b/quickref.php index 059af83...210d98e 100644 --- a/quickref.php +++ b/quickref.php @@ -133,7 +133,7 @@ if ($snippet = is_known_snippet($notfound)) { ?> <h1>Perform an alternative search here</h1> -<?php include './include/google-cse.inc'; ?> +<?php include $_SERVER['DOCUMENT_ROOT'] . '/include/google-cse.inc'; ?> <h1>PHP Function List</h1> diff --git a/results.php b/results.php index 46167db..2bdd713 100644 --- a/results.php +++ b/results.php @@ -64,7 +64,7 @@ if (!is_array($res)) { // No results for query if ($res['ResultSet']['totalResultsAvailable'] == 0) { echo '<h1>Perform an alternative search instead</h1>'; - include './include/google-cse.inc'; + include $_SERVER['DOCUMENT_ROOT'] . '/include/google-cse.inc'; exit_with_pretty_error(null, 'No matches', 'No pages matched your query'); exit; }

« previous php.webmaster (#14044) next »