com web/php: Fixed BC issue with PHP 5.2 and __DIR__. : Gateway/NewsFileSystemGateway.php

From: Date: Wed, 11 Jul 2012 17:52:47 +0000
Subject: com web/php: Fixed BC issue with PHP 5.2 and __DIR__. : Gateway/NewsFileSystemGateway.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13911@lists.php.net to get a copy of this message
Commit: 5489c2b053de1fbfb156b0532da90071c9d4ef1f Author: Levi Morrison <levim@php.net> Wed, 11 Jul 2012 11:52:47 -0600 Parents: 175aefb9d60b770bd518105f2e5de700ab8853bf Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=5489c2b053de1fbfb156b0532da90071c9d4ef1f Log: Fixed BC issue with PHP 5.2 and __DIR__. Changed paths: M Gateway/NewsFileSystemGateway.php Diff: diff --git a/Gateway/NewsFileSystemGateway.php b/Gateway/NewsFileSystemGateway.php index dbe4ae5..35db542 100644 --- a/Gateway/NewsFileSystemGateway.php +++ b/Gateway/NewsFileSystemGateway.php @@ -1,7 +1,7 @@ <?php -require_once __DIR__ . '/../Entity/NewsItem.php'; -require_once __DIR__ . '/NewsGateway.php'; +require_once '/../Entity/NewsItem.php'; +require_once '/NewsGateway.php'; class NewsFileSystemGateway implements NewsGateway {

« previous php.webmaster (#13911) next »