From a9419d04ee348cc66bea69d45bde6d99d8998cd2 Mon Sep 17 00:00:00 2001 From: marcus Date: Fri, 12 Jun 2009 09:48:51 +0000 Subject: Refs #1041: Extra debug git-svn-id: https://code.elgg.org/elgg/trunk@3328 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/filestore.php | 2 +- languages/en.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/lib/filestore.php b/engine/lib/filestore.php index 9031a964f..2f65ccc2f 100644 --- a/engine/lib/filestore.php +++ b/engine/lib/filestore.php @@ -241,7 +241,7 @@ if (!$owner) $owner = get_loggedin_user(); - if ((!$owner) || (!$owner->username)) throw new InvalidParameterException(elgg_echo('InvalidParameterException:MissingOwner')); + if ((!$owner) || (!$owner->username)) throw new InvalidParameterException(sprintf(elgg_echo('InvalidParameterException:MissingOwner'), $file->getFilename(), $file->guid)); return $this->dir_root . $this->make_file_matrix($owner->username) . $file->getFilename(); } diff --git a/languages/en.php b/languages/en.php index 4b3f35b4b..e70aa35da 100644 --- a/languages/en.php +++ b/languages/en.php @@ -82,7 +82,7 @@ 'ImportException:NotAllImported' => "Not all elements were imported.", 'InvalidParameterException:UnrecognisedFileMode' => "Unrecognised file mode '%s'", - 'InvalidParameterException:MissingOwner' => "All files must have an owner!", + 'InvalidParameterException:MissingOwner' => "File %s (%d) is missing an owner!", 'IOException:CouldNotMake' => "Could not make %s", 'IOException:MissingFileName' => "You must specify a name before opening a file.", 'ClassNotFoundException:NotFoundNotSavedWithFile' => "Filestore not found or class not saved with file!", -- cgit v1.2.3