1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Swap uses of _SERVER[DOCUMENT_ROOT] for __DIR__

1/n - Update / and /include/ only.
This commit is contained in:
Sara Golemon
2019-05-31 10:54:12 -04:00
parent 99d7ea1349
commit 2735e5f03f
53 changed files with 97 additions and 97 deletions

View File

@@ -1,7 +1,7 @@
<?php
$_SERVER['BASE_PAGE'] = 'results.php';
include $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include $_SERVER['DOCUMENT_ROOT'] . '/include/results.inc';
include __DIR__ . '/include/prepend.inc';
include __DIR__ . '/include/results.inc';
if (!isset($_GET['l']) || !is_string($_GET['l'])) {
$_GET['l'] = null;