Commit 5268b707 authored by Richard Mansfield's avatar Richard Mansfield
Browse files
parents 0da9f787 f40e2653
......@@ -255,23 +255,25 @@ class ArtefactTypeProfile extends ArtefactType {
'type' => 'html',
'value' => ' ',
);
$currentwidth = get_config_plugin('artefact', 'internal', 'profileiconwidth');
$form['elements']['profileiconwidth'] = array(
'type' => 'text',
'size' => 4,
'suffix' => get_string('widthshort'),
'title' => get_string('profileiconsize', 'artefact.internal'),
'defaultvalue' => get_config_plugin('artefact', 'internal', 'profileiconwidth'),
'defaultvalue' => ((!empty($currentwidth)) ? $currentwidth : 100),
'rules' => array(
'required' => true,
'integer' => true,
)
);
$currentheight = get_config_plugin('artefact', 'internal', 'profileiconheight');
$form['elements']['profileiconheight'] = array(
'type' => 'text',
'suffix' => get_string('heightshort'),
'size' => 4,
'title' => get_string('profileiconsize', 'artefact.internal'),
'defaultvalue' => get_config_plugin('artefact', 'internal', 'profileiconheight'),
'defaultvalue' => ((!empty($currentheight)) ? $currentheight : 100),
'rules' => array(
'required' => true,
'integer' => true,
......
......@@ -28,7 +28,7 @@ define('INTERNAL', 1);
define('PUBLIC', 1);
require(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
require_once('form.php');
require_once('pieforms/pieform.php');
safe_require('artefact', 'internal');
$email = param_variable('email');
......
Supports Markdown
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