| @@ 119-132 (lines=14) @@ | ||
| 116 | ) . "\n"; |
|
| 117 | } |
|
| 118 | ||
| 119 | if ( $this->mShowCancel ) { |
|
| 120 | $target = $this->mCancelTarget ?: Title::newMainPage(); |
|
| 121 | if ( $target instanceof Title ) { |
|
| 122 | $target = $target->getLocalURL(); |
|
| 123 | } |
|
| 124 | $buttons .= Html::element( |
|
| 125 | 'a', |
|
| 126 | [ |
|
| 127 | 'class' => 'mw-ui-button mw-ui-big mw-ui-block', |
|
| 128 | 'href' => $target, |
|
| 129 | ], |
|
| 130 | $this->msg( 'cancel' )->text() |
|
| 131 | ) . "\n"; |
|
| 132 | } |
|
| 133 | ||
| 134 | foreach ( $this->mButtons as $button ) { |
|
| 135 | $attrs = [ |
|
| @@ 1162-1175 (lines=14) @@ | ||
| 1159 | ) . "\n"; |
|
| 1160 | } |
|
| 1161 | ||
| 1162 | if ( $this->mShowCancel ) { |
|
| 1163 | $target = $this->mCancelTarget ?: Title::newMainPage(); |
|
| 1164 | if ( $target instanceof Title ) { |
|
| 1165 | $target = $target->getLocalURL(); |
|
| 1166 | } |
|
| 1167 | $buttons .= Html::element( |
|
| 1168 | 'a', |
|
| 1169 | [ |
|
| 1170 | 'class' => $useMediaWikiUIEverywhere ? 'mw-ui-button' : null, |
|
| 1171 | 'href' => $target, |
|
| 1172 | ], |
|
| 1173 | $this->msg( 'cancel' )->text() |
|
| 1174 | ) . "\n"; |
|
| 1175 | } |
|
| 1176 | ||
| 1177 | // IE<8 has bugs with <button>, so we'll need to avoid them. |
|
| 1178 | $isBadIE = preg_match( '/MSIE [1-7]\./i', $this->getRequest()->getHeader( 'User-Agent' ) ); |
|