Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
5268b707
Commit
5268b707
authored
Nov 24, 2006
by
Richard Mansfield
Browse files
Merge with
git+ssh://git.catalyst.net.nz/var/git/mahara.git
parents
0da9f787
f40e2653
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/lib.php
View file @
5268b707
...
...
@@ -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
,
...
...
htdocs/artefact/internal/profile/validate.php
View file @
5268b707
...
...
@@ -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/pie
form.php'
);
safe_require
(
'artefact'
,
'internal'
);
$email
=
param_variable
(
'email'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment