Skip to content

Commit

Permalink
Tidy cache exception text. Remove unused var in logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tboothman committed May 3, 2015
1 parent b837596 commit 8c95541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions imdb_cache.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function __construct(mdb_config $config, imdb_logger $logger) {

if (!is_dir($this->config->cachedir)) {
$this->logger->critical("[Cache] Configured cache directory [{$this->config->cachedir}] does not exist!");
throw new imdb_exception("[IMDbPHP][Cache] Configured cache directory [{$this->config->cachedir}] does not exist!");
throw new imdb_exception("[Cache] Configured cache directory [{$this->config->cachedir}] does not exist!");
}
if (!is_writable($this->config->cachedir)) {
$this->logger->critical("[Cache] Configured cache directory [{$this->config->cachedir}] lacks write permission!");
throw new imdb_exception("[IMDbPHP][Cache] Configured cache directory [{$this->config->cachedir}] lacks write permission!");
throw new imdb_exception("[Cache] Configured cache directory [{$this->config->cachedir}] lacks write permission!");
}
}

Expand Down
1 change: 0 additions & 1 deletion imdb_logger.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
class imdb_logger {

protected $enabled;
private $context;

public function __construct($enabled = true) {
$this->enabled = $enabled;
Expand Down

0 comments on commit 8c95541

Please sign in to comment.