mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Prevent some notices and process if $CFG->emoticons is not set or empty. MDL-12414 ; merged from 19_STABLE
This commit is contained in:
parent
dd1e295528
commit
183a13c294
1 changed files with 6 additions and 1 deletions
|
@ -2032,8 +2032,13 @@ function cleanAttributes2($htmlArray){
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function replace_smilies(&$text) {
|
function replace_smilies(&$text) {
|
||||||
///
|
|
||||||
global $CFG;
|
global $CFG;
|
||||||
|
|
||||||
|
if (empty($CFG->emoticons)) { /// No emoticons defined, nothing to process here
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$lang = current_language();
|
$lang = current_language();
|
||||||
$emoticonstring = $CFG->emoticons;
|
$emoticonstring = $CFG->emoticons;
|
||||||
static $e = array();
|
static $e = array();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue