diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-08-03 22:47:57 +0000 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-08-03 22:47:57 +0000 |
commit | dccd4aa68d7ae449434c63380f21d8070913778f (patch) | |
tree | 1a25d40f20326047eb0776f910e155362e8e33cb /classes/File.php | |
parent | 981fa1b33a8073bd0d53d8bee7dfccd171685e61 (diff) | |
parent | ff6e976d0315c57fc5b7e31845e9a3bad4f095bc (diff) |
Merge branch '0.8.x' into twitter-oauth
Diffstat (limited to 'classes/File.php')
-rw-r--r-- | classes/File.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/File.php b/classes/File.php index 0c4fbf7e6..959301eda 100644 --- a/classes/File.php +++ b/classes/File.php @@ -93,7 +93,6 @@ class File extends Memcached_DataObject if (empty($file)) { $file_redir = File_redirection::staticGet('url', $given_url); if (empty($file_redir)) { - common_debug("processNew() '$given_url' not a known redirect.\n"); $redir_data = File_redirection::where($given_url); $redir_url = $redir_data['url']; if ($redir_url === $given_url) { @@ -114,7 +113,9 @@ class File extends Memcached_DataObject if (empty($x)) { $x = File::staticGet($file_id); - if (empty($x)) die('Impossible!'); + if (empty($x)) { + throw new ServerException("Robin thinks something is impossible."); + } } File_to_post::processNew($file_id, $notice_id); |