return Ajax-y XML on exceptions

This commit is contained in:
Evan Prodromou
2011-03-16 18:53:46 -04:00
parent 29a4bb4d91
commit 0791d0034f
3 changed files with 44 additions and 1 deletions

View File

@@ -31,6 +31,7 @@ class StatusNet
{
protected static $have_config;
protected static $is_api;
protected static $is_ajax;
protected static $plugins = array();
/**
@@ -230,6 +231,16 @@ class StatusNet
self::$is_api = $mode;
}
public function isAjax()
{
return self::$is_ajax;
}
public function setAjax($mode)
{
self::$is_ajax = $mode;
}
/**
* Build default configuration array
* @return array