From: <var...@us...> - 2016-02-08 09:20:27
|
Revision: 9778 http://sourceforge.net/p/phpwiki/code/9778 Author: vargenau Date: 2016-02-08 09:20:25 +0000 (Mon, 08 Feb 2016) Log Message: ----------- Include lib/phpweather-2.2.2/phpweather.php Modified Paths: -------------- trunk/lib/plugin/PhpWeather.php Modified: trunk/lib/plugin/PhpWeather.php =================================================================== --- trunk/lib/plugin/PhpWeather.php 2016-02-08 09:12:52 UTC (rev 9777) +++ trunk/lib/plugin/PhpWeather.php 2016-02-08 09:20:25 UTC (rev 9778) @@ -43,17 +43,9 @@ * both_metric, or both_imperial. */ -// We require the base class from PHP Weather. Try some default directories. -// Better define PHPWEATHER_BASE_DIR to the directory on your server: if (!defined('PHPWEATHER_BASE_DIR')) { - /* PhpWeather has not been loaded before. We include the base - * class from PhpWeather, adjust this to match the location of - * PhpWeather on your server: */ - if (!isset($_SERVER)) - $_SERVER =& $GLOBALS['HTTP_SERVER_VARS']; - @include_once($_SERVER['DOCUMENT_ROOT'] . '/phpweather-2.2.1/phpweather.php'); - if (!defined('PHPWEATHER_BASE_DIR')) - @include_once($_SERVER['DOCUMENT_ROOT'] . '/phpweather/phpweather.php'); + /* PhpWeather has not been loaded before. We include the base class from PhpWeather. */ + include_once 'lib/phpweather-2.2.2/phpweather.php'; } class WikiPlugin_PhpWeather This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |