Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 65... Línea 65...
65
            'contextinstanceid' => $this->contextinstanceid,
65
            'contextinstanceid' => $this->contextinstanceid,
66
            'other' => $this->other
66
            'other' => $this->other
67
        ];
67
        ];
68
        $string = $this->description;
68
        $string = $this->description;
69
        foreach ($vars as $key => $value) {
69
        foreach ($vars as $key => $value) {
-
 
70
            if ($value !== null) {
70
            $string = str_replace("##" . $key, $value, $string);
71
                $string = str_replace("##" . $key, $value, $string);
-
 
72
            }
71
        }
73
        }
72
        return $string;
74
        return $string;
73
    }
75
    }
Línea 74... Línea 76...
74
 
76