Skip to content
Snippets Groups Projects
Commit 408ab4e1 authored by Andjelko Horvat's avatar Andjelko Horvat
Browse files

SimpleSAML_Error_Error: change errors.show_function to array.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2997 44740490-163a-0410-bde0-09ae8108e29a
parent 45759aa7
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ $config = array ( ...@@ -54,7 +54,7 @@ $config = array (
* See docs/simplesamlphp-errorhandling.txt for function code example. * See docs/simplesamlphp-errorhandling.txt for function code example.
* *
* Example: * Example:
* 'errors.show_function' => 'sspmod_exmaple_Error_Show::show', * 'errors.show_function' => array('sspmod_example_Error_Show', 'show'),
*/ */
/** /**
......
...@@ -242,7 +242,7 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception { ...@@ -242,7 +242,7 @@ class SimpleSAML_Error_Error extends SimpleSAML_Error_Exception {
$data['email'] = ''; $data['email'] = '';
} }
$show_function = $config->getString('errors.show_function', NULL); $show_function = $config->getArray('errors.show_function', NULL);
if (isset($show_function)) { if (isset($show_function)) {
assert('is_callable($show_function)'); assert('is_callable($show_function)');
call_user_func($show_function, $config, $data); call_user_func($show_function, $config, $data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment