Index: trunk/extensions/gis/maparea.php |
— | — | @@ -51,11 +51,7 @@ |
52 | 52 | $wgOut->setPagetitle( "Maparea" ); |
53 | 53 | |
54 | 54 | if (($e = $this->p->get_error()) != "") { |
55 | | - $wgOut->addHTML( |
56 | | - "<p>" . htmlspecialchars( $e ) . "</p>"); |
57 | | - $wgOut->output(); |
58 | | - wfErrorExit(); |
59 | | - return; |
| 55 | + throw new FatalError( htmlspecialchars( $e ) ); |
60 | 56 | } |
61 | 57 | |
62 | 58 | $wgOut->addWikiText( $this->make_output() ); |
Index: trunk/extensions/gis/neighbors.php |
— | — | @@ -57,11 +57,7 @@ |
58 | 58 | $wgOut->setPagetitle( "Neighbors" ); |
59 | 59 | |
60 | 60 | if (($e = $this->p->get_error()) != "") { |
61 | | - $wgOut->addHTML( |
62 | | - "<p>" . htmlspecialchars( $e ) . "</p>"); |
63 | | - $wgOut->output(); |
64 | | - wfErrorExit(); |
65 | | - return; |
| 61 | + throw new FatalError( htmlspecialchars( $e ) ); |
66 | 62 | } |
67 | 63 | |
68 | 64 | $wgOut->addWikiText( $this->make_output() ); |
Index: trunk/extensions/gis/mapsources.php |
— | — | @@ -61,11 +61,7 @@ |
62 | 62 | global $wgOut, $wgUser, $wgContLang, $wgRequest; |
63 | 63 | |
64 | 64 | if (($e = $this->p->get_error()) != "") { |
65 | | - $wgOut->addHTML( |
66 | | - "<p>" . htmlspecialchars( $e ) . "</p>"); |
67 | | - $wgOut->output(); |
68 | | - wfErrorExit(); |
69 | | - return ""; |
| 65 | + throw new FatalError( htmlspecialchars( $e ) ); |
70 | 66 | } |
71 | 67 | |
72 | 68 | $attr = $this->p->get_attr(); |
— | — | @@ -215,11 +211,9 @@ |
216 | 212 | $bsarticle = new Article( $bstitle ); |
217 | 213 | } |
218 | 214 | if ($bsarticle->getID() == 0) { |
219 | | - $wgOut->addHTML( "<p>Please add this page: " . |
220 | | - $sk->makeBrokenLinkObj( $bstitle ).".</p>"); |
221 | | - $wgOut->output(); |
222 | | - wfErrorExit(); |
223 | | - return ""; |
| 215 | + $wgOut->addHTML( ); |
| 216 | + throw new FatalError( "<p>Please add this page: " . |
| 217 | + $sk->makeBrokenLinkObj( $bstitle ) . ".</p>" ); |
224 | 218 | } |
225 | 219 | $bstext = $bsarticle->getContent( false ); # allow redir |
226 | 220 | |