Fix directory problem with google exclude file generator

This commit is contained in:
Mitchell Krog 2017-06-27 14:55:38 +02:00
parent e9866f159d
commit 31743d85e5

View file

@ -27,7 +27,7 @@ class Generator
*/ */
public function domainWorker() public function domainWorker()
{ {
$domainsFile = __DIR__ . "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-referrers.list"; $domainsFile = "/home/travis/build/mitchellkrogza/nginx-ultimate-bad-bot-blocker/_generator_lists/bad-referrers.list";
$handle = fopen($domainsFile, "r"); $handle = fopen($domainsFile, "r");
if (!$handle) { if (!$handle) {
throw new \RuntimeException('Error opening file ' . $domainsFile); throw new \RuntimeException('Error opening file ' . $domainsFile);