mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-32451 fix remaining E_STRICT issues in wiki
This commit is contained in:
parent
ead4f180a0
commit
dde4368ffc
@ -339,7 +339,7 @@ class ouwiki_line {
|
||||
* @param array $lines Array of ouwiki_line
|
||||
* @return array Array of strings
|
||||
*/
|
||||
function get_as_strings($lines) {
|
||||
static function get_as_strings($lines) {
|
||||
$strings=array();
|
||||
foreach($lines as $key=>$value) {
|
||||
$strings[$key]=$value->get_as_string();
|
||||
|
@ -42,7 +42,6 @@ class mod_wiki_edit_form extends moodleform {
|
||||
|
||||
$version = $this->_customdata['version'];
|
||||
$format = $this->_customdata['format'];
|
||||
$pagetitle = $this->_customdata['pagetitle'];
|
||||
|
||||
if (empty($this->_customdata['contextid'])) {
|
||||
// Hack alert
|
||||
@ -57,7 +56,7 @@ class mod_wiki_edit_form extends moodleform {
|
||||
|
||||
if (isset($this->_customdata['pagetitle'])) {
|
||||
// Page title must be formatted properly here as this is output and not an element.
|
||||
$pagetitle = get_string('editingpage', 'wiki', format_string($pagetitle, true, array('context' => get_context_instance_by_id($contextid, MUST_EXIST))));
|
||||
$pagetitle = get_string('editingpage', 'wiki', format_string($this->_customdata['pagetitle'], true, array('context' => get_context_instance_by_id($contextid, MUST_EXIST))));
|
||||
} else {
|
||||
$pagetitle = get_string('editing', 'wiki');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user