]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/serverexception.php
$longurl->url is just the same $canon we fed to File_redirection::where()
[quix0rs-gnu-social.git] / lib / serverexception.php
index 856866ae9d3f66f2e17eae93203862c641091a8b..764e11c0fc6c577620783fbb7751ccd2df48d20d 100644 (file)
  * @category  Exception
  * @package   StatusNet
  * @author    Evan Prodromou <evan@status.net>
- * @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);
     }