Update of /cvsroot/phpweather/phpweather
In directory sc8-pr-cvs1:/tmp/cvs-serv5155
Modified Files:
index.php
Log Message:
We actually require those files... Versions of PHP prior to 4.0.2
distinguished between include() and require() in that require() were
handled unconditionally in a preprocessor-like fashion whereas
include() only read the file when needed. Now that both functions (or
rather language constructs) work the same we can switch to require().
Index: index.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/index.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- index.php 28 Dec 2002 14:22:26 -0000 1.39
+++ index.php 2 Sep 2003 18:06:08 -0000 1.40
@@ -92,11 +92,11 @@
if (! empty($icao)) {
/* We should only display the current weather if we have station ($icao) */
- include(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php");
+ require(PHPWEATHER_BASE_DIR . "/output/pw_text_$language.php");
$type = 'pw_text_' . $language;
$text = new $type($weather);
- include(PHPWEATHER_BASE_DIR . "/output/pw_images.php");
+ require(PHPWEATHER_BASE_DIR . "/output/pw_images.php");
$icons = new pw_images($weather);
$output .= '<p>This is the current weather in ' .
|