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

« back to all changes in this revision

Viewing changes to lib/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Proprietary.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/Tidy.php';
4
 
 
5
 
class HTMLPurifier_HTMLModule_Tidy_Proprietary extends
6
 
      HTMLPurifier_HTMLModule_Tidy
 
3
class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy
7
4
{
8
 
    
9
 
    var $name = 'Tidy_Proprietary';
10
 
    var $defaultLevel = 'light';
11
 
    
12
 
    function makeFixes() {
13
 
        return array();
 
5
 
 
6
    public $name = 'Tidy_Proprietary';
 
7
    public $defaultLevel = 'light';
 
8
 
 
9
    public function makeFixes() {
 
10
        $r = array();
 
11
        $r['table@background'] = new HTMLPurifier_AttrTransform_Background();
 
12
        $r['td@background']    = new HTMLPurifier_AttrTransform_Background();
 
13
        $r['th@background']    = new HTMLPurifier_AttrTransform_Background();
 
14
        $r['tr@background']    = new HTMLPurifier_AttrTransform_Background();
 
15
        $r['thead@background'] = new HTMLPurifier_AttrTransform_Background();
 
16
        $r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();
 
17
        $r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();
 
18
        $r['table@height']     = new HTMLPurifier_AttrTransform_Length('height');
 
19
        return $r;
14
20
    }
15
 
    
 
21
 
16
22
}
17
23
 
 
24
// vim: et sw=4 sts=4