]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #1041: Extra debug
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 12 Jun 2009 09:48:51 +0000 (09:48 +0000)
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 12 Jun 2009 09:48:51 +0000 (09:48 +0000)
git-svn-id: https://code.elgg.org/elgg/trunk@3328 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/filestore.php
languages/en.php

index 9031a964f25eb14f9c55648829c6a832dfbbb905..2f65ccc2ff6e0af774b298d038abce1cd36f3ae3 100644 (file)
                        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();
                }
index 4b3f35b4b82dee1f377a97a8cdf0efa761ba44e1..e70aa35da359f7612f3ea30e7a7c4d8554dfd151 100644 (file)
@@ -82,7 +82,7 @@
                        'ImportException:NotAllImported' => "Not all elements were imported.",\r
                        \r
                        'InvalidParameterException:UnrecognisedFileMode' => "Unrecognised file mode '%s'",\r
-                       'InvalidParameterException:MissingOwner' => "All files must have an owner!",\r
+                       'InvalidParameterException:MissingOwner' => "File %s (%d) is missing an owner!",\r
                        'IOException:CouldNotMake' => "Could not make %s",\r
                        'IOException:MissingFileName' => "You must specify a name before opening a file.",\r
                        'ClassNotFoundException:NotFoundNotSavedWithFile' => "Filestore not found or class not saved with file!",\r