~ubuntu-branches/ubuntu/natty/moodle/natty

« back to all changes in this revision

Viewing changes to course/delete_category_form.php

  • Committer: Bazaar Package Importer
  • Author(s): Tomasz Muras
  • Date: 2010-10-30 12:19:28 UTC
  • mfrom: (1.1.12 upstream) (3.1.10 squeeze)
  • Revision ID: james.westby@ubuntu.com-20101030121928-qzobi6mctpnk4dif
Tags: 1.9.9.dfsg2-2
* Added Romanian translation
* Updated Japanese translation (closes: #596820)
* Backporting security fixes from Moodle 1.9.10 (closes: #601384)
   - Updated embedded CAS to 1.1.3
   - Added patch for MDL-24523:
     clean_text() not filtering text in markdown format
   - Added patch for MDL-24810 and upgraded customized HTML Purifier to 4.2.0 
   - Added patch for MDL-24258:
     students can delete their forum posts later than $CFG->maxeditingtime 
     under certain conditions
   - Added patch for MDL-23377:
     Can't delete quiz attempts in course without enrolled students

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php  //$Id: delete_category_form.php,v 1.1.2.3 2008/12/08 07:28:05 tjhunt Exp $
 
1
<?php  //$Id: delete_category_form.php,v 1.1.2.5 2010/05/13 01:40:37 moodler Exp $
 
2
 
 
3
if (!defined('MOODLE_INTERNAL')) {
 
4
    die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
 
5
}
2
6
 
3
7
require_once($CFG->libdir.'/formslib.php');
4
8
require_once($CFG->libdir . '/questionlib.php');
110
114
            }
111
115
        } else {
112
116
            $mform->addElement('hidden', 'fulldelete', 1);
 
117
            $mform->setType('fulldelete', PARAM_INT);
113
118
            $mform->addElement('static', 'emptymessage', '', get_string('deletecategoryempty'));
114
119
        }
115
120
 
116
121
        $mform->addElement('hidden', 'delete');
 
122
        $mform->setType('delete', PARAM_ALPHANUM);
117
123
        $mform->addElement('hidden', 'sure');
 
124
        $mform->setType('sure', PARAM_ALPHANUM);
118
125
        $mform->setDefault('sure', md5(serialize($category)));
119
126
 
120
127
//--------------------------------------------------------------------------------