Index: trunk/extensions/SemanticForms/includes/SF_Utils.inc |
— | — | @@ -42,8 +42,10 @@ |
43 | 43 | * etc. |
44 | 44 | */ |
45 | 45 | static function printRedirectForm($title, $page_contents, $edit_summary, $is_save, $is_preview, $is_diff, $is_minor_edit, $watch_this, $start_time, $edit_time) { |
46 | | - $article = new Article($title); |
47 | | - $new_url = $title->getLocalURL('action=submit'); |
| 46 | + if ($title instanceof Title) |
| 47 | + $new_url = $title->getLocalURL('action=submit'); |
| 48 | + else |
| 49 | + $new_url = $title; |
48 | 50 | global $wgUser; |
49 | 51 | if ( $wgUser->isLoggedIn() ) |
50 | 52 | $token = htmlspecialchars($wgUser->editToken()); |