blog MDL-23393 - Tidy up preferences form
[moodle.git] / blog / preferences.php
index 366beda..472ee30 100755 (executable)
@@ -73,6 +73,7 @@ require_capability('moodle/blog:view', $context);
 /// If data submitted, then process and store.
 
 $mform = new blog_preferences_form('preferences.php');
+$mform->set_data(array('pagesize' => get_user_preferences('blogpagesize')));
 
 if (!$mform->is_cancelled() && $data = $mform->get_data()) {
     $pagesize = $data->pagesize;