Commit 8b1c01f8 authored by Robert Lyon's avatar Robert Lyon

Bug 1564641: using safe_require() for skin export

To avoid not including artefact/lib.php

behatnotneeded

Change-Id: I1f675ab6f42f638d18e448e8a841e3bc59259399
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 6d982d29
......@@ -13,7 +13,7 @@
define('INTERNAL', true);
require_once(dirname(dirname(__FILE__)) . '/init.php');
require_once('skin.php');
require_once(get_config('docroot') . 'artefact/file/lib.php');
safe_require('artefact', 'file');
$exportid = param_integer('id', 0); // id(s) of skin(s) to be exported...
$exportsiteskins = param_boolean('site', false);
......
......@@ -17,7 +17,7 @@ define('SECTION_PAGE', 'import');
require_once(dirname(dirname(__FILE__)) . '/init.php');
require_once('skin.php');
require_once('file.php');
safe_require('artefact', 'file');
require_once('uploadmanager.php');
define('TITLE', get_string('importskins', 'skin'));
......
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