http://www.mediawiki.org/wiki/Special:Code/MediaWiki/95743

Revision: 95743
Author:   nikerabbit
Date:     2011-08-30 09:02:17 +0000 (Tue, 30 Aug 2011)
Log Message:
-----------
Few more potential oldid bugs

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
    trunk/extensions/SemanticForms/includes/SF_TemplateInForm.php

Modified: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormPrinter.php  2011-08-30 
08:56:18 UTC (rev 95742)
+++ trunk/extensions/SemanticForms/includes/SF_FormPrinter.php  2011-08-30 
09:02:17 UTC (rev 95743)
@@ -1390,7 +1390,7 @@
                                $form_text .= SFFormUtils::formBottom( 
$form_is_disabled );
                }
                $starttime = wfTimestampNow();
-               $page_article = new Article( $this->mPageTitle );
+               $page_article = new Article( $this->mPageTitle, 0 );
                $edittime = $page_article->getTimestamp();
                if ( !$is_query ) {
                        $form_text .= SFFormUtils::hiddenFieldHTML( 
'wpStarttime', wfTimestampNow() );

Modified: trunk/extensions/SemanticForms/includes/SF_TemplateInForm.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_TemplateInForm.php       
2011-08-30 08:56:18 UTC (rev 95742)
+++ trunk/extensions/SemanticForms/includes/SF_TemplateInForm.php       
2011-08-30 09:02:17 UTC (rev 95743)
@@ -42,7 +42,7 @@
                // recorded the first time they're found.
                $template_title = Title::makeTitleSafe( NS_TEMPLATE, 
$this->mTemplateName );
                $template_article = null;
-               if ( isset( $template_title ) ) $template_article = new 
Article( $template_title );
+               if ( isset( $template_title ) ) $template_article = new 
Article( $template_title, 0 );
                if ( isset( $template_article ) ) {
                        $templateText = $template_article->getContent();
                        // Ignore 'noinclude' sections and 'includeonly' tags.


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to