From 8c95541edbf48e9eb8f551d5d492a0600d959013 Mon Sep 17 00:00:00 2001 From: Tom Boothman Date: Sun, 4 Jan 2015 00:32:05 +0000 Subject: [PATCH] Tidy cache exception text. Remove unused var in logger --- imdb_cache.class.php | 4 ++-- imdb_logger.class.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/imdb_cache.class.php b/imdb_cache.class.php index 74fa57e4..b14252ea 100644 --- a/imdb_cache.class.php +++ b/imdb_cache.class.php @@ -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!"); } } diff --git a/imdb_logger.class.php b/imdb_logger.class.php index 504a33a8..7d58faee 100644 --- a/imdb_logger.class.php +++ b/imdb_logger.class.php @@ -7,7 +7,6 @@ class imdb_logger { protected $enabled; - private $context; public function __construct($enabled = true) { $this->enabled = $enabled;