Commit 669645bc authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Checking if webservices is enabled for testclient (Bug #1403718)

Change-Id: I3fdbf9b9fa00fd031b170285c85cef3cdac47df9
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 444882d6
{include file='header.tpl'}
<b>{str tag="testclientinstructions" section="auth.webservice"}</b>
<div><b>{str tag="testclientinstructions" section="auth.webservice"}</b></div>
{if $disabled}
<div class="error">{str tag=wsauthnotenabled section='auth.webservice'}</div>
{include file='footer.tpl'}
\ No newline at end of file
......@@ -174,6 +174,8 @@ safe_require('auth', 'webservice');
$smarty->assign('form', $form);
$heading = get_string('testclient', 'auth.webservice');
$smarty->assign('PAGEHEADING', $heading);
// Check that webservices is enabled
$smarty->assign('disabled', (get_config('webservice_enabled') ? false : true));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment