| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | 2 | public function redirectToUrl( $output ) { |
|
| 38 | |||
| 39 | 2 | if ( !$this->formPrinterHandler->canUseForm() ) { |
|
| 40 | 1 | return true; |
|
| 41 | } |
||
| 42 | |||
| 43 | 1 | $url = htmlspecialchars( SpecialPage::getTitleFor( 'SemanticSignup' )->getFullURL() ); |
|
| 44 | |||
| 45 | 1 | wfRunHooks( 'SemanticSignupBeforeRedirect', array( &$url ) ); |
|
| 46 | |||
| 47 | 1 | $output->redirect( $url ); |
|
| 48 | |||
| 49 | 1 | return false; |
|
| 50 | } |
||
| 51 | } |
||
| 52 |