Commit bba4789a 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.


Change-Id: Id627b582b3a30598900ba3a7e9b486579a65d0f6
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 69b04f36
......@@ -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