Commit ef952423 authored by Yuliya Bozhko's avatar Yuliya Bozhko
Browse files

Make 'Edit/Add License' page titles more descriptive (Bug #1266907)



Change-Id: I031597d2045ec382789d4eee8040ce624e4d7297
Signed-off-by: default avatarYuliya Bozhko <yuliya.bozhko@totaralms.com>
parent 33f6ad05
......@@ -19,7 +19,6 @@ define('SECTION_PAGE', 'sitepages');
require(dirname(dirname(dirname(__FILE__))).'/init.php');
require_once('license.php');
require_once('pieforms/pieform.php');
define('TITLE', get_string('sitelicenses', 'admin'));
define('DEFAULTPAGE', 'home');
$extralicensessql = "
......@@ -31,11 +30,15 @@ $extralicensessql = "
";
$edit = param_variable('edit', null);
$title = get_string('sitelicensesadd', 'admin');
if ($edit !== null) {
$edit = get_record('artefact_license', 'name', $edit);
$title = get_string('sitelicensesedit', 'admin');
}
define('TITLE', $title);
$elements = array(
'displayname' => array(
'type' => 'text',
......
......@@ -83,9 +83,11 @@ $string['menusdescription'] = 'Manage the links and files within the "Links and
$string['sitefiles'] = 'Site files';
$string['sitefonts'] = 'Fonts';
$string['sitefontsdescription'] = 'Upload and manage fonts usable in skins by all users on the site';
$string['sitelicenses'] = 'Licenses';
$string['sitelicenses'] = 'Licenses';
$string['sitelicensesadd'] = 'Add license';
$string['sitelicensesdescription'] = 'Configure the list of licenses that users can use for content.';
$string['sitelicensesdisablednote'] = '<b>Note</b>: License metadata is currently disabled. You will need to enable it in the "General settings" section of "<a href="%sadmin/site/options.php">Configure site</a>" before users will be able to specify licenses.';
$string['sitelicensesedit'] = 'Edit license';
$string['sitefilesdescription'] = 'Upload and administer files that can be put in the "Links and resources" menu and in site pages';
$string['siteskins'] = 'Site skins';
$string['siteskinsdescription'] = 'Create and administer page skins usable by all users on the site';
......
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