r51067 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r51066‎ | r51067 | r51068 >
Date:15:41, 27 May 2009
Author:yaron
Status:deferred
Tags:
Comment:
Redirect form can now take URLs as well, to work for 'RunQuery'
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_Utils.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_Utils.inc
@@ -42,8 +42,10 @@
4343 * etc.
4444 */
4545 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;
4850 global $wgUser;
4951 if ( $wgUser->isLoggedIn() )
5052 $token = htmlspecialchars($wgUser->editToken());

Status & tagging log