Skip to content

Commit fbb614d

Browse files
committed
Fixed error_reporting stuff
2 parents 4dbd543 + b6d9dd0 commit fbb614d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Twitter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static function profile($username = '')
1010
}
1111

1212
// Store cached profiles in /cache for now.
13-
$cache = "cache/cache-twitter-{$username}";
13+
$cache = dirname($_SERVER['SCRIPT_FILENAME']) . "/cache/cache-twitter-{$username}";
1414
//echo "cache is" . $cache . "<br>";
1515
if (file_exists($cache)) {
1616
// echo "file exists<br>";
@@ -28,6 +28,7 @@ public static function profile($username = '')
2828
return array('error' => 'Twitter is not responding.');
2929
} else {
3030
$profile = json_decode($json, TRUE);
31+
3132
file_put_contents($cache, serialize($profile));
3233

3334
return $profile;

0 commit comments

Comments
 (0)