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

« back to all changes in this revision

Viewing changes to lib/htmlpurifier/HTMLPurifier/HTMLModule/StyleAttribute.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
1
<?php
2
2
 
3
 
require_once 'HTMLPurifier/HTMLModule.php';
4
 
require_once 'HTMLPurifier/AttrDef/CSS.php';
5
 
 
6
3
/**
7
4
 * XHTML 1.1 Edit Module, defines editing-related elements. Text Extension
8
5
 * Module.
9
6
 */
10
7
class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
11
8
{
12
 
    
13
 
    var $name = 'StyleAttribute';
14
 
    var $attr_collections = array(
 
9
 
 
10
    public $name = 'StyleAttribute';
 
11
    public $attr_collections = array(
15
12
        // The inclusion routine differs from the Abstract Modules but
16
13
        // is in line with the DTD and XML Schemas.
17
14
        'Style' => array('style' => false), // see constructor
18
15
        'Core' => array(0 => array('Style'))
19
16
    );
20
 
    
21
 
    function setup($config) {
 
17
 
 
18
    public function setup($config) {
22
19
        $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
23
20
    }
24
 
    
 
21
 
25
22
}
26
23
 
 
24
// vim: et sw=4 sts=4