Commit bba4789a authored by Robert Lyon's avatar Robert Lyon
Browse files

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: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent 69b04f36
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;