Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -825,15 +825,20 @@ |
826 | 826 | * |
827 | 827 | * @author Solitarius |
828 | 828 | * @since 2.4 |
| 829 | + * |
| 830 | + * @param EditPage $editpage |
| 831 | + * @param WebRequest $request |
| 832 | + * |
| 833 | + * @return true |
829 | 834 | */ |
830 | | - public static function showFormPreview( $editpage, $request ) { |
| 835 | + public static function showFormPreview( EditPage $editpage, WebRequest $request ) { |
831 | 836 | global $wgOut, $sfgFormPrinter; |
832 | 837 | |
833 | 838 | wfDebug( __METHOD__ . ": enter.\n" ); |
834 | 839 | wfProfileIn( __METHOD__ ); |
835 | 840 | |
836 | 841 | // Exit if we're not in preview mode. |
837 | | - if ( ! $editpage->preview ) { |
| 842 | + if ( !$editpage->preview ) { |
838 | 843 | return true; |
839 | 844 | } |
840 | 845 | // Exit if we aren't in the "Form" namespace. |