svn: /web/php/trunk/images/ elephpants.php
| From: | Stewart Lord | Date: | Thu, 22 Sep 2011 06:11:35 +0000 |
| Subject: | svn: /web/php/trunk/images/ elephpants.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-12238@lists.php.net to get a copy of this message | ||
stewartlord Thu, 22 Sep 2011 06:11:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=317135
Log:
Replace __DIR__ with dirname(__FILE__). It's easy to forget that this
constant was only added in 5.3 (some mirrors run old versions).
Changed paths:
U web/php/trunk/images/elephpants.php
Modified: web/php/trunk/images/elephpants.php
===================================================================
--- web/php/trunk/images/elephpants.php 2011-09-22 02:26:00 UTC (rev 317134)
+++ web/php/trunk/images/elephpants.php 2011-09-22 06:11:35 UTC (rev 317135)
@@ -30,7 +30,7 @@
}
// read out photo metadata
-$path = __DIR__ . '/elephpants';
+$path = dirname(__FILE__) . '/elephpants';
$json = @file_get_contents($path . '/flickr.json');
$photos = json_decode($json, true);