diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 12:52:13 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-05 12:52:13 +0000 |
commit | c949e085c33b6eaf2e1dda4add566d47ab1876cd (patch) | |
tree | 648f4d1fd9e1565aeae53c40ae883570fe16963f /engine/lib/cache.php | |
parent | 152405d1b34b8ba1a27b288eba53bb29ed2bf228 (diff) | |
download | elgg-c949e085c33b6eaf2e1dda4add566d47ab1876cd.tar.gz elgg-c949e085c33b6eaf2e1dda4add566d47ab1876cd.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Partial internationalisation of exceptions
git-svn-id: https://code.elgg.org/elgg/trunk@801 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/cache.php')
-rw-r--r-- | engine/lib/cache.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php index 6f7b99abe..2fbbf3f04 100644 --- a/engine/lib/cache.php +++ b/engine/lib/cache.php @@ -98,7 +98,7 @@ $this->set_variable("max_age", $max_age); $this->set_variable("max_size", $max_size); - if ($cache_path=="") throw new ConfigurationException("Cache path set to nothing!"); + if ($cache_path=="") throw new ConfigurationException(elgg_echo('ConfigurationException:NoCachePath')); } /** @@ -197,7 +197,7 @@ $exclude = array(".",".."); $files = scandir($dir); - if (!$files) throw new IOException("$dir is not a directory."); + if (!$files) throw new IOException(sprintf(elgg_echo('IOException:NotDirectory'), $dir)); // Perform cleanup foreach ($files as $f) |