From efb71fa7f3f4ff69f71f7a3cd9ede283dc7005b4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 25 Feb 2010 19:33:00 +0100 Subject: [PATCH] use XMPPHP/ folder instead of dirname(__FILE__) which is inefficient --- XMPPHP/BOSH.php | 2 +- XMPPHP/XMLStream.php | 6 +++--- XMPPHP/XMPP.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/XMPPHP/BOSH.php b/XMPPHP/BOSH.php index befaf60..dacb3b4 100644 --- a/XMPPHP/BOSH.php +++ b/XMPPHP/BOSH.php @@ -27,7 +27,7 @@ */ /** XMPPHP_XMLStream */ -require_once dirname(__FILE__) . "/XMPP.php"; +require_once 'XMPPHP/XMPP.php'; /** * XMPPHP Main Class diff --git a/XMPPHP/XMLStream.php b/XMPPHP/XMLStream.php index 85da6db..0cd933b 100644 --- a/XMPPHP/XMLStream.php +++ b/XMPPHP/XMLStream.php @@ -27,13 +27,13 @@ */ /** XMPPHP_Exception */ -require_once dirname(__FILE__) . '/Exception.php'; +require_once 'XMPPHP/Exception.php'; /** XMPPHP_XMLObj */ -require_once dirname(__FILE__) . '/XMLObj.php'; +require_once 'XMPPHP/XMLObj.php'; /** XMPPHP_Log */ -require_once dirname(__FILE__) . '/Log.php'; +require_once 'XMPPHP/Log.php'; /** * XMPPHP XML Stream diff --git a/XMPPHP/XMPP.php b/XMPPHP/XMPP.php index 808e6e8..4768d83 100644 --- a/XMPPHP/XMPP.php +++ b/XMPPHP/XMPP.php @@ -27,8 +27,8 @@ */ /** XMPPHP_XMLStream */ -require_once dirname(__FILE__) . "/XMLStream.php"; -require_once dirname(__FILE__) . "/Roster.php"; +require_once 'XMPPHP/XMLStream.php'; +require_once 'XMPPHP/Roster.php'; /** * XMPPHP Main Class