includes/htmlform/fields/HTMLFormFieldCloner.php 1 location
|
@@ 64-68 (lines=5) @@
|
61 |
|
]; |
62 |
|
unset( $info['name'], $info['class'] ); |
63 |
|
|
64 |
|
if ( !isset( $info['type'] ) || $info['type'] !== 'submit' ) { |
65 |
|
throw new MWException( |
66 |
|
'HTMLFormFieldCloner delete field, if specified, must be of type "submit"' |
67 |
|
); |
68 |
|
} |
69 |
|
|
70 |
|
if ( !in_array( $class, explode( ' ', $info['cssclass'] ) ) ) { |
71 |
|
$info['cssclass'] .= " $class"; |
includes/parser/Parser.php 1 location
|
@@ 5944-5946 (lines=3) @@
|
5941 |
|
* @return string |
5942 |
|
*/ |
5943 |
|
public function unserializeHalfParsedText( $data ) { |
5944 |
|
if ( !isset( $data['version'] ) || $data['version'] != self::HALF_PARSED_VERSION ) { |
5945 |
|
throw new MWException( __METHOD__ . ': invalid version' ); |
5946 |
|
} |
5947 |
|
|
5948 |
|
# First, extract the strip state. |
5949 |
|
$texts = [ $data['text'] ]; |