mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-8029 obsoleted ob_end_clean() emulation removed from chat
This commit is contained in:
parent
5d776ecbfc
commit
dd2d45a878
@ -644,19 +644,6 @@ function chat_format_message($message, $courseid, $currentuser, $chat_lastrow=NU
|
||||
return chat_format_message_manually($message, $courseid, $user, $currentuser, $chat_lastrow);
|
||||
}
|
||||
|
||||
if (!function_exists('ob_get_clean')) {
|
||||
/// Compatibility function for PHP < 4.3.0
|
||||
function ob_get_clean() {
|
||||
$cont = ob_get_contents();
|
||||
if ($cont !== false) {
|
||||
ob_end_clean();
|
||||
return $cont;
|
||||
} else {
|
||||
return $cont;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function chat_get_view_actions() {
|
||||
return array('view','view all','report');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user