diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-02-11 04:11:12 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2009-02-11 04:11:12 +0300 |
commit | 1ff507815eda378f579e1f819dbf81e32e61c0b0 (patch) | |
tree | 5c1c8d2ccdb5392567f23318de29925719c14e1e /misc | |
parent | cb629b02f81537180718d70bddc9dbc42846aaa4 (diff) |
- fix #525 (Calling set_error_handler and set_exception_handler as part of the API makes it difficult to use)
you can now disable piwik error handler and exception handler by doing:
define('ENABLE_ERROR_HANDLER', false);
Diffstat (limited to 'misc')
-rw-r--r-- | misc/api_internal_call.php | 4 | ||||
-rw-r--r-- | misc/api_rest_call.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/misc/api_internal_call.php b/misc/api_internal_call.php index 0509051c99..fc88303d75 100644 --- a/misc/api_internal_call.php +++ b/misc/api_internal_call.php @@ -1,6 +1,7 @@ <?php define('PIWIK_INCLUDE_PATH', '..'); -define('ENABLE_DISPATCH', false); +define('ENABLE_DISPATCH', false); +define('ENABLE_ERROR_HANDLER', false); require_once PIWIK_INCLUDE_PATH . "/index.php"; require_once PIWIK_INCLUDE_PATH . "/core/API/Request.php"; @@ -22,4 +23,3 @@ $request = new Piwik_API_Request(' $result = $request->process(); echo $result; -?> diff --git a/misc/api_rest_call.php b/misc/api_rest_call.php index 6a1aeea231..c154a9250d 100644 --- a/misc/api_rest_call.php +++ b/misc/api_rest_call.php @@ -27,4 +27,4 @@ foreach($content as $row) print("<b>$keyword</b> ($hits hits)<br>"); } -?> + |