Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed BC issue with PHP 5.2 and __DIR__.

  • Loading branch information...
commit 40755d0dbf67c35a1f03e41c4a36da45e3e9cc9c 1 parent dfbc651
@morrisonlevi morrisonlevi authored
Showing with 7 additions and 7 deletions.
  1. +2 −2 Gateway/NewsFileSystemGateway.php
  2. +5 −5 index-beta.php
View
4 Gateway/NewsFileSystemGateway.php
@@ -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 {
View
10 index-beta.php
@@ -43,11 +43,11 @@
}
$_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) {
Please sign in to comment.
Something went wrong with that request. Please try again.