Index: trunk/extensions/CentralNotice/TemplatePager.php |
— | — | @@ -2,7 +2,6 @@ |
3 | 3 | |
4 | 4 | class TemplatePager extends ReverseChronologicalPager { |
5 | 5 | var $onRemoveChange, $viewPage, $special; |
6 | | - var $editable; |
7 | 6 | |
8 | 7 | function __construct( $special ) { |
9 | 8 | $this->special = $special; |
— | — | @@ -41,15 +40,17 @@ |
42 | 41 | // Begin banner row |
43 | 42 | $htmlOut = Xml::openElement( 'tr' ); |
44 | 43 | |
45 | | - // Remove box |
46 | | - $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), |
47 | | - Xml::check( 'removeTemplates[]', false, |
48 | | - array( |
49 | | - 'value' => $row->tmp_name, |
50 | | - 'onchange' => $this->onRemoveChange |
| 44 | + if ( $this->editable ) { |
| 45 | + // Remove box |
| 46 | + $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ), |
| 47 | + Xml::check( 'removeTemplates[]', false, |
| 48 | + array( |
| 49 | + 'value' => $row->tmp_name, |
| 50 | + 'onchange' => $this->onRemoveChange |
| 51 | + ) |
51 | 52 | ) |
52 | | - ) |
53 | | - ); |
| 53 | + ); |
| 54 | + } |
54 | 55 | |
55 | 56 | // Link and Preview |
56 | 57 | $viewPage = SpecialPage::getTitleFor( 'NoticeTemplate', 'view' ); |
Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -1329,7 +1329,6 @@ |
1330 | 1330 | |
1331 | 1331 | class CentralNoticePager extends TemplatePager { |
1332 | 1332 | var $viewPage, $special; |
1333 | | - var $editable; |
1334 | 1333 | |
1335 | 1334 | function __construct( $special ) { |
1336 | 1335 | parent::__construct( $special ); |
Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -6,7 +6,6 @@ |
7 | 7 | } |
8 | 8 | |
9 | 9 | class SpecialNoticeTemplate extends UnlistedSpecialPage { |
10 | | - var $editable; |
11 | 10 | |
12 | 11 | function __construct() { |
13 | 12 | parent::__construct( 'NoticeTemplate' ); |