]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
IrcManager does not have serverError, so it must throw ServerException
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 9 Mar 2014 23:30:41 +0000 (00:30 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 9 Mar 2014 23:30:41 +0000 (00:30 +0100)
plugins/Irc/lib/ircmanager.php

index 3dae68d133f26c05f476949feff240df2d24baf9..021fe190e34ae11e2aaa8cc1d0a47305146cac19 100644 (file)
@@ -244,7 +244,7 @@ class IrcManager extends ImManager {
                     if (!$result) {
                         common_log_db_error($confirm, 'DELETE', __FILE__);
                         // TRANS: Server error thrown on database error when deleting IRC nickname confirmation.
-                        $this->serverError(_m('Could not delete confirmation.'));
+                        throw new ServerException(_m('Could not delete confirmation.'));
                     }
                 }
             }