Skip to content

Commit

Permalink
fix reloadpsl
Browse files Browse the repository at this point in the history
  • Loading branch information
geekwright committed Feb 8, 2017
1 parent 4fcd963 commit 0e0c8e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/reloadpsl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function includeIfExists($file)
}
}

if ((!$loader = includeIfExists(__DIR__.'/../vendor/autoload.php'))
if ((!$loader = includeIfExists(__DIR__.'/../autoload.php'))
&& (!$loader = includeIfExists(__DIR__.'/../../../autoload.php')))
{
die("You must set up the project dependencies, run composer install\n");
Expand Down
2 changes: 1 addition & 1 deletion src/PublicSuffixList.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ protected function setLocalPSLName($url)
*/
public function clearDataDirectory($cacheOnly = false)
{
$dir = $this->dataDir;
$dir = __DIR__ . $this->dataDir;
if (is_dir($dir)) {
if ($dirHandle = opendir($dir)) {
while (($file = readdir($dirHandle)) !== false) {
Expand Down

0 comments on commit 0e0c8e3

Please sign in to comment.