Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -76,10 +76,9 @@ |
77 | 77 | } |
78 | 78 | |
79 | 79 | // Handle adding banner |
80 | | - // FIXME: getText()? weak comparison |
81 | 80 | if ( $method == 'addTemplate' ) { |
82 | | - $newTemplateName = $wgRequest->getVal( 'templateName' ); |
83 | | - $newTemplateBody = $wgRequest->getVal( 'templateBody' ); |
| 81 | + $newTemplateName = $wgRequest->getText( 'templateName' ); |
| 82 | + $newTemplateBody = $wgRequest->getText( 'templateBody' ); |
84 | 83 | if ( $newTemplateName != '' && $newTemplateBody != '' ) { |
85 | 84 | $this->addTemplate( |
86 | 85 | $newTemplateName, |
— | — | @@ -96,8 +95,8 @@ |
97 | 96 | // Handle editing banner |
98 | 97 | if ( $method == 'editTemplate' ) { |
99 | 98 | $this->editTemplate( |
100 | | - $wgRequest->getVal( 'template' ), |
101 | | - $wgRequest->getVal( 'templateBody' ), |
| 99 | + $wgRequest->getText( 'template' ), |
| 100 | + $wgRequest->getText( 'templateBody' ), |
102 | 101 | $wgRequest->getBool( 'displayAnon' ), |
103 | 102 | $wgRequest->getBool( 'displayAccount' ) |
104 | 103 | ); |