X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fserverexception.php;h=0f4c5099579c7e339d06a312dc840aa84fff8f0e;hb=11dc170eade226e3db9f26742b24ebecff83b490;hp=4ce3887e4975d331e8ea29e1046e5ef443efbf77;hpb=c8b8f07af14ad2ce9d0c0267962dd3bbf6473a4b;p=quix0rs-gnu-social.git diff --git a/lib/serverexception.php b/lib/serverexception.php index 4ce3887e49..0f4c509957 100644 --- a/lib/serverexception.php +++ b/lib/serverexception.php @@ -21,13 +21,13 @@ * * @category Exception * @package StatusNet - * @author Evan Prodromou - * @copyright 2008 StatusNet, Inc. + * @author Evan Prodromou + * @copyright 2008-2010 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ -if (!defined('LACONICA')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -38,14 +38,14 @@ if (!defined('LACONICA')) { * * @category Exception * @package StatusNet - * @author Evan Prodromou + * @author Evan Prodromou * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 - * @link http://laconi.ca/ + * @link http://status.net/ */ class ServerException extends Exception { - public function __construct($message = null, $code = 400) { + public function __construct($message = "", $code = 500) { parent::__construct($message, $code); }