Commit 497bbc83 authored by Robert Lyon's avatar Robert Lyon

Bug 1651592: Changing the error thrown if skins not enabled

When navigating to the admin/site/fonts.php page.

behatnotneeded

Change-Id: Id627b582b3a30598900ba3a7e9b486579a65d0f6
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit bba4789a)
parent 47d08b24
......@@ -22,7 +22,7 @@ require_once(get_config('libroot') . 'skin.php');
define('TITLE', get_string('sitefonts', 'skin'));
if (!get_config('skins')) {
throw new FeatureNotEnabledException();
throw new AccessDeniedException(get_string('pluginnotenabled', 'mahara', 'skins'));
}
$fontpreview = !is_null($SESSION->get('fontpreview')) ? $SESSION->get('fontpreview') : 21;
......
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