mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Fixed BC issue with PHP 5.2 and __DIR__.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once 'Entity/NewsItem.php';
|
||||
require_once 'NewsGateway.php';
|
||||
require_once dirname(__FILE__) . '/../Entity/NewsItem.php';
|
||||
require_once dirname(__FILE__) . '/NewsGateway.php';
|
||||
|
||||
class NewsFileSystemGateway implements NewsGateway {
|
||||
|
||||
|
||||
@@ -43,11 +43,11 @@ else {
|
||||
}
|
||||
|
||||
$_SERVER['BASE_PAGE'] = 'index.php';
|
||||
include_once '/include/prepend.inc';
|
||||
include_once '/include/pregen-events.inc';
|
||||
include_once '/include/pregen-confs.inc';
|
||||
include_once '/include/pregen-news.inc';
|
||||
include_once '/include/version.inc';
|
||||
include_once 'include/prepend.inc';
|
||||
include_once 'include/pregen-events.inc';
|
||||
include_once 'include/pregen-confs.inc';
|
||||
include_once 'include/pregen-news.inc';
|
||||
include_once 'include/version.inc';
|
||||
|
||||
// Prepare announcements.
|
||||
if (is_array($CONF_TEASER) && $CONF_TEASER) {
|
||||
|
||||
Reference in New Issue
Block a user