| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function execute() { |
||
| 28 | $r = $this->parent->request; |
||
| 29 | if ( $r->wasPosted() ) { |
||
| 30 | $really = $r->getVal( 'submit-restart' ); |
||
| 31 | if ( $really ) { |
||
|
|
|||
| 32 | $this->parent->reset(); |
||
| 33 | } |
||
| 34 | |||
| 35 | return 'continue'; |
||
| 36 | } |
||
| 37 | |||
| 38 | $this->startForm(); |
||
| 39 | $s = $this->parent->getWarningBox( wfMessage( 'config-help-restart' )->plain() ); |
||
| 40 | $this->addHTML( $s ); |
||
| 41 | $this->endForm( 'restart' ); |
||
| 42 | |||
| 43 | return null; |
||
| 44 | } |
||
| 45 | |||
| 47 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
stringvalues, the empty string''is a special case, in particular the following results might be unexpected: