"MDL-22112, readonly page title"
authorDongsheng Cai <unoter@gmail.com>
Sun, 2 May 2010 13:58:13 +0000 (13:58 +0000)
committerDongsheng Cai <unoter@gmail.com>
Sun, 2 May 2010 13:58:13 +0000 (13:58 +0000)
mod/wiki/create_form.php

index 00c62be..1cc087f 100644 (file)
@@ -36,7 +36,7 @@ class mod_wiki_create_form extends moodleform {
 
         $textoptions = array();
         if (!empty($this->_customdata['disable_pagetitle'])) {
-            $textoptions = array('disabled'=>'disabled');
+            $textoptions = array('readonly'=>'readonly');
         }
         $mform->addElement('text', 'pagetitle', get_string('newpagetitle', 'wiki'), $textoptions);