@@ 277-288 (lines=12) @@ | ||
274 | */ |
|
275 | public function execute() { |
|
276 | $this->doChecks(); |
|
277 | if ( $this->level > 0 ) { |
|
278 | switch ( $this->output ) { |
|
279 | case 'plain': |
|
280 | $this->outputText(); |
|
281 | break; |
|
282 | case 'wiki': |
|
283 | $this->outputWiki(); |
|
284 | break; |
|
285 | default: |
|
286 | throw new MWException( "Invalid output type $this->output" ); |
|
287 | } |
|
288 | } |
|
289 | } |
|
290 | ||
291 | /** |
|
@@ 748-759 (lines=12) @@ | ||
745 | if ( !$this->isEmpty() ) { |
|
746 | echo $extension->name() . ":\n"; |
|
747 | ||
748 | if ( $this->level > 0 ) { |
|
749 | switch ( $this->output ) { |
|
750 | case 'plain': |
|
751 | $this->outputText(); |
|
752 | break; |
|
753 | case 'wiki': |
|
754 | $this->outputWiki(); |
|
755 | break; |
|
756 | default: |
|
757 | throw new MWException( "Invalid output type $this->output" ); |
|
758 | } |
|
759 | } |
|
760 | ||
761 | echo "\n"; |
|
762 | } |