Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
This commit is contained in:
commit
d1c778b439
|
@ -395,6 +395,8 @@ class ExtendedProfileWidget extends Form
|
||||||
{
|
{
|
||||||
$this->out->elementStart('div', 'education-item');
|
$this->out->elementStart('div', 'education-item');
|
||||||
$this->out->element('div', 'label', _m('Institution'));
|
$this->out->element('div', 'label', _m('Institution'));
|
||||||
|
if (!empty($field['school'])) {
|
||||||
|
|
||||||
$this->out->element('div', 'field', $field['school']);
|
$this->out->element('div', 'field', $field['school']);
|
||||||
$this->out->element('div', 'label', _m('Degree'));
|
$this->out->element('div', 'label', _m('Degree'));
|
||||||
$this->out->element('div', 'field', $field['degree']);
|
$this->out->element('div', 'field', $field['degree']);
|
||||||
|
@ -414,6 +416,7 @@ class ExtendedProfileWidget extends Form
|
||||||
date('j M Y', strtotime($field['end'])
|
date('j M Y', strtotime($field['end'])
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
$this->out->elementEnd('div');
|
$this->out->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -564,10 +567,11 @@ class ExtendedProfileWidget extends Form
|
||||||
$out->input($id, null, $this->ext->getTextValue($name));
|
$out->input($id, null, $this->ext->getTextValue($name));
|
||||||
break;
|
break;
|
||||||
case 'date':
|
case 'date':
|
||||||
|
$value = $this->ext->getDateValue($name);
|
||||||
$out->input(
|
$out->input(
|
||||||
$id,
|
$id,
|
||||||
null,
|
null,
|
||||||
date('j M Y', strtotime($this->ext->getDateValue($name)))
|
empty($value) ? null : date('j M Y', strtotime($value))
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case 'person':
|
case 'person':
|
||||||
|
|
|
@ -260,8 +260,7 @@ class ProfileDetailSettingsAction extends ProfileSettingsAction
|
||||||
$this->removeAll($user, 'website');
|
$this->removeAll($user, 'website');
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach($sites as $site) {
|
foreach($sites as $site) {
|
||||||
|
if (!empty($site['value']) && !Validate::uri(
|
||||||
if (!Validate::uri(
|
|
||||||
$site['value'],
|
$site['value'],
|
||||||
array('allowed_schemes' => array('http', 'https')))
|
array('allowed_schemes' => array('http', 'https')))
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user