From 4b023f2a1021763cb34fc12a19a7148ab3dfe5dc Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 29 Mar 2012 10:12:50 +1300 Subject: [PATCH] MDL-32018 mod_wiki: Fixed up whitespace after peer-review --- mod/wiki/create.php | 1 - mod/wiki/edit_form.php | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/mod/wiki/create.php b/mod/wiki/create.php index f7174c117eb..0931b54b9fb 100644 --- a/mod/wiki/create.php +++ b/mod/wiki/create.php @@ -78,7 +78,6 @@ if (!empty($swid)) { $wikipage->set_uid($uid); } - $wikipage->set_title($title); // set page action, and initialise moodle form diff --git a/mod/wiki/edit_form.php b/mod/wiki/edit_form.php index 5a24be62cf4..5412ee7557a 100644 --- a/mod/wiki/edit_form.php +++ b/mod/wiki/edit_form.php @@ -41,7 +41,7 @@ class mod_wiki_edit_form extends moodleform { $mform = $this->_form; $version = $this->_customdata['version']; - $format = $this->_customdata['format']; + $format = $this->_customdata['format']; $pagetitle = $this->_customdata['pagetitle']; if (empty($this->_customdata['contextid'])) { @@ -50,9 +50,9 @@ class mod_wiki_edit_form extends moodleform { // after the release of 2.3 (not creating an issue because this whole thing should be reviewed) debugging('You must always provide mod_wiki_edit_form with a contextid in its custom data', DEBUG_DEVELOPER); global $PAGE; - $contextid = $PAGE->context->id; + $contextid = $PAGE->context->id; } else { - $contextid = $this->_customdata['contextid']; + $contextid = $this->_customdata['contextid']; } if (isset($this->_customdata['pagetitle'])) { @@ -100,7 +100,7 @@ class mod_wiki_edit_form extends moodleform { $mform->setType('contentformat', PARAM_ALPHANUMEXT); if (!empty($CFG->usetags)) { - $tags = !isset($this->_customdata['tags'])?"":$this->_customdata['tags']; + $tags = !isset($this->_customdata['tags'])?"":$this->_customdata['tags']; $mform->addElement('header', 'tagshdr', get_string('tags', 'tag')); $mform->addElement('tags', 'tags', get_string('tags')); $mform->setDefault('tags', $tags);