function __construct($message, $code, $output = 'php://output', $indent = null) { parent::__construct(null, $message, $output, $indent); $this->code = $code; $this->message = $message; $this->minimal = StatusNet::isApi(); // XXX: hack alert: usually we aren't going to // call this page directly, but because it's // an action it needs an args array anyway $this->prepare($_REQUEST); }