X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fserverexception.php;h=764e11c0fc6c577620783fbb7751ccd2df48d20d;hb=c285f80b1830cffd20a28c693d74c59f8c3c39f6;hp=856866ae9d3f66f2e17eae93203862c641091a8b;hpb=be5d113fc684fcbe41b8374c62bfeb0f267216b7;p=quix0rs-gnu-social.git diff --git a/lib/serverexception.php b/lib/serverexception.php index 856866ae9d..764e11c0fc 100644 --- a/lib/serverexception.php +++ b/lib/serverexception.php @@ -22,12 +22,12 @@ * @category Exception * @package StatusNet * @author Evan Prodromou - * @copyright 2008 StatusNet, Inc. + * @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://status.net/ */ -if (!defined('STATUSNET')) { +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } @@ -45,7 +45,7 @@ if (!defined('STATUSNET')) { class ServerException extends Exception { - public function __construct($message = null, $code = 400) { + public function __construct($message = null, $code = 500) { parent::__construct($message, $code); }