Skip to content

Commit 6d39dad

Browse files
committed
Fix typo, add "getPictureLegacy" function needed in ofaj_dev
1 parent 6080591 commit 6d39dad

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

main/lp/lp_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function activate_end_date() {
241241
</script>';
242242
}
243243

244-
$htmlHeadXtra[] = '<script>'.$learnPath->get_js_dropdown_array()."</sript>";
244+
$htmlHeadXtra[] = '<script>'.$learnPath->get_js_dropdown_array().'</script>';
245245

246246
$defaults['publicated_on'] = !empty($publicated_on) && $publicated_on !== '0000-00-00 00:00:00'
247247
? api_get_local_time($publicated_on)

src/Chamilo/UserBundle/Entity/User.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2586,4 +2586,14 @@ public function setCommentedUserSkills($commentedUserSkills)
25862586

25872587
return $this;
25882588
}
2589+
2590+
/**
2591+
* @return string
2592+
*/
2593+
public function getPictureLegacy()
2594+
{
2595+
$id = $this->id;
2596+
2597+
return 'users/'.substr((string) $id, 0, 1).'/'.$id.'/'.'small_'.$this->getPictureUri();
2598+
}
25892599
}

0 commit comments

Comments
 (0)