Index: trunk/extensions/SemanticImageInput/includes/InstantImageInput.php |
— | — | @@ -19,17 +19,15 @@ |
20 | 20 | } |
21 | 21 | |
22 | 22 | public static function getDefaultPropTypes() { |
23 | | - return array( |
24 | | - ); |
| 23 | + return array(); |
25 | 24 | } |
26 | 25 | |
27 | 26 | public static function getOtherPropTypesHandled() { |
28 | | - return array( '_wpg' ); |
| 27 | + return array( '_txt', '_wpg' ); |
29 | 28 | } |
30 | 29 | |
31 | 30 | public static function getDefaultPropTypeLists() { |
32 | | - return array( |
33 | | - ); |
| 31 | + return array(); |
34 | 32 | } |
35 | 33 | |
36 | 34 | public static function getOtherPropTypeListsHandled() { |
— | — | @@ -83,6 +81,10 @@ |
84 | 82 | global $wgOut; |
85 | 83 | $html = ''; |
86 | 84 | |
| 85 | + if ( !array_key_exists( 'page', $other_args ) ) { |
| 86 | + $other_args['type'] = 'page'; |
| 87 | + } |
| 88 | + |
87 | 89 | $showDefault = !array_key_exists( 'showdefault', $other_args ) || $other_args['showdefault'] === 'yes'; |
88 | 90 | |
89 | 91 | if ( $showDefault && !array_key_exists( 'default', $other_args ) ) { |
Index: trunk/extensions/SemanticImageInput/SemanticImageInput.settings.php |
— | — | @@ -27,6 +27,8 @@ |
28 | 28 | */ |
29 | 29 | protected static function getDefaultSettings() { |
30 | 30 | return array( |
| 31 | + 'defaultImage' => 'File:Mail-envelope.png', |
| 32 | + 'defaultWidth' => 200 |
31 | 33 | ); |
32 | 34 | } |
33 | 35 | |
Index: trunk/extensions/SemanticImageInput/SemanticImageInput.php |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | |
59 | 59 | $wgExtensionFunctions[] = function() { |
60 | 60 | global $sfgFormPrinter; |
61 | | - $sfgFormPrinter->registerInputType( 'WikiImageInput' ); |
| 61 | + $sfgFormPrinter->registerInputType( 'InstantImageInput' ); |
62 | 62 | }; |
63 | 63 | |
64 | 64 | // Resource loader modules |