Skip to content

Commit

Permalink
Replace deprecated user_picture::fields() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed May 10, 2021
1 parent a09d7cf commit 7b036d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ public function render() {
$PAGE->requires->yui_module('moodle-local_chatlogs-keyboard', 'M.local_chatlogs.init_keyboard');

$sql = 'SELECT m.id AS messageid, m.fromemail, m.fromplace, m.timesent,
m.message, p.nickname, p.userid, '.user_picture::fields('u').
m.message, p.nickname, p.userid' . \core_user\fields::for_userpic()->get_sql('u')->selects .
' FROM {local_chatlogs_messages} m
LEFT JOIN {local_chatlogs_participants} p
ON m.fromemail = p.fromemail
Expand Down Expand Up @@ -391,7 +391,7 @@ public function __construct($uniqueid, $searchterm) {

$this->sql->fields = 'm.id AS messageid, m.fromemail, m.fromplace, m.timesent,
m.message, m.conversationid, p.nickname,
p.userid, '.user_picture::fields('u');
p.userid ' . \core_user\fields::for_userpic()->get_sql('u')->selects;

$this->sql->from = '{local_chatlogs_messages} m
LEFT JOIN {local_chatlogs_participants} p
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
defined('MOODLE_INTERNAL') || die;

$plugin->component = 'local_chatlogs';
$plugin->release = '3.7.0';
$plugin->version = 2019050900;
$plugin->requires = 2019050800;
$plugin->release = '3.11';
$plugin->version = 2021051000;
$plugin->requires = 2021050700;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'filter_urltolink' => ANY_VERSION,
Expand Down

0 comments on commit 7b036d3

Please sign in to comment.