X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Ferror.php;h=03a1960c620bdc124836e16f276426b2f210185f;hb=0715a50e0b6ae08e1f6b24d615566e9031ffd756;hp=c24f3bbf433d2621a7199a5803c3c4a464760527;hpb=64df40e409812249748723b8acb0b48920ed786b;p=quix0rs-gnu-social.git diff --git a/lib/error.php b/lib/error.php index c24f3bbf43..03a1960c62 100644 --- a/lib/error.php +++ b/lib/error.php @@ -33,8 +33,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR . '/lib/info.php'; - /** * Base class for displaying HTTP errors * @@ -58,7 +56,7 @@ class ErrorAction extends InfoAction $this->code = $code; $this->message = $message; - $this->minimal = StatusNet::isApi(); + $this->minimal = GNUsocial::isApi(); // XXX: hack alert: usually we aren't going to // call this page directly, but because it's @@ -68,7 +66,7 @@ class ErrorAction extends InfoAction function showPage() { - if (StatusNet::isAjax()) { + if (GNUsocial::isAjax()) { $this->extraHeaders(); $this->ajaxErrorMsg(); exit();