| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function show() |
||
| 37 | { |
||
| 38 | global $ID; |
||
| 39 | global $lang; |
||
| 40 | |||
| 41 | // print intro |
||
| 42 | print p_locale_xhtml('conflict'); |
||
| 43 | |||
| 44 | // create the form |
||
| 45 | $form = new Form(['id' => 'dw__editform']); |
||
| 46 | $form->addTagOpen('div')->addClass('no'); |
||
| 47 | $form->setHiddenField('id', $ID); |
||
| 48 | $form->setHiddenField('wikitext', $this->text); |
||
| 49 | $form->setHiddenField('summary', $this->summary); |
||
| 50 | |||
| 51 | $form->addButton('do[save]', $lang['btn_save'] )->attrs(['type' => 'submit', 'accesskey' => 's']); |
||
| 52 | $form->addButton('do[cancel]', $lang['btn_cancel'] )->attrs(['type' => 'submit']); |
||
| 53 | $form->addTagClose('div'); |
||
| 54 | |||
| 55 | print $form->toHTML('Conflict'); |
||
| 56 | |||
| 57 | print '<br /><br /><br /><br />'; |
||
| 58 | |||
| 59 | (new Diff($this->text, false))->show(); |
||
| 60 | } |
||
| 61 | |||
| 63 |