Skip to content

Commit

Permalink
fixed unknown $log variable call. issue #1
Browse files Browse the repository at this point in the history
  • Loading branch information
janKir committed Nov 8, 2017
1 parent 9f58d32 commit f6caa9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CacheNesting.module
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class CacheNesting extends WireData implements Module
$all_available = false;
// and delete straight from cache db
if (!$cache->delete($depName))
$log->warning("failed deleting cache: $depName");
wire()->log->warning("failed deleting cache: $depName");
}

// skip if false and no full traverse needed
Expand Down Expand Up @@ -265,7 +265,7 @@ class CacheNesting extends WireData implements Module
$cache = wire()->cache;
$success = $cache->saveFor(self::$cachePage, "cacheDependencyTree", self::$dependencyList, WireCache::expireNever);
if (!$success)
$this->log->error("The CacheNestedDependency module failed saving the cache dependency tree!");
wire()->log->error("The CacheNestedDependency module failed saving the cache dependency tree!");
}

/**
Expand Down

0 comments on commit f6caa9a

Please sign in to comment.