Skip to content

Commit ff12b46

Browse files
woodscaius
authored andcommitted
Be more specific about where files are located so that faker.php can be included from anywhere, regardless of the script location or current working directory.
Signed-off-by: Caius Durling <[email protected]>
1 parent 9b1b9a2 commit ff12b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

faker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function &__get( $var )
3535
{
3636
if (empty(Faker::$_instances[$var])) {
3737

38-
$filename = "lib/".strtolower($var).".php";
38+
$filename = dirname(__FILE__)."/lib/".strtolower($var).".php";
3939

4040
if(!file_exists($filename))
4141
return NULL;

0 commit comments

Comments
 (0)