Brion Vibber | 1 Mar 2006 02:27
Picon

phase3 RELEASE-NOTES,1.796,1.797

Update of /cvsroot/wikipedia/phase3
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27616

Modified Files:
	RELEASE-NOTES 
Log Message:
* Purge thumbnails and metadata cache for action=purge on an image page

Index: RELEASE-NOTES
===================================================================
RCS file: /cvsroot/wikipedia/phase3/RELEASE-NOTES,v
retrieving revision 1.796
retrieving revision 1.797
diff -u -d -r1.796 -r1.797
--- RELEASE-NOTES	27 Feb 2006 09:12:00 -0000	1.796
+++ RELEASE-NOTES	1 Mar 2006 01:27:35 -0000	1.797
 <at>  <at>  -668,6 +668,7  <at>  <at> 
   "-resize 100x35!"; some thumbs were off due to differences in rounding and
   would be generated smaller than expected.
 * (bug 5062) Width sometimes one pixel short when using maximum heights
+* Purge thumbnails and metadata cache for action=purge on an image page

 
 === Caveats ===
Brion Vibber | 1 Mar 2006 02:27
Picon

phase3/includes Article.php, 1.455, 1.456 ImagePage.php, 1.132, 1.133

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27616/includes

Modified Files:
	Article.php ImagePage.php 
Log Message:
* Purge thumbnails and metadata cache for action=purge on an image page

Index: ImagePage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/ImagePage.php,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- ImagePage.php	5 Feb 2006 18:32:55 -0000	1.132
+++ ImagePage.php	1 Mar 2006 01:27:36 -0000	1.133
 <at>  <at>  -664,6 +664,22  <at>  <at> 
 		$edit = new EditPage( $this );
 		return $edit->blockedIPpage();
 	}
+	
+	/**
+	 * Override handling of action=purge
+	 */
+	function doPurge() {
+		$this->img = new Image( $this->mTitle );
+		if( $this->img->exists() ) {
+			wfDebug( "ImagePage::doPurge purging " . $this->img->getName() . "\n" );
+			$linksTo = $this->img->getLinksTo();
+			Title::touchArray( $linksTo );
(Continue reading)

Tim Starling | 1 Mar 2006 02:57
Picon

phase3/includes Parser.php,1.595,1.596

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22199/includes

Modified Files:
	Parser.php 
Log Message:
Fixed inappropriate access of $wgTitle from LanguageConverter.php.

Index: Parser.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/Parser.php,v
retrieving revision 1.595
retrieving revision 1.596
diff -u -d -r1.595 -r1.596
--- Parser.php	28 Feb 2006 05:18:36 -0000	1.595
+++ Parser.php	1 Mar 2006 01:57:53 -0000	1.596
 <at>  <at>  -73,7 +73,7  <at>  <at> 
  *   performs brace substitution on MediaWiki messages
  *
  * Globals used:
- *    objects:   $wgLang
+ *    objects:   $wgLang, $wgContLang
  *
  * NOT $wgArticle, $wgUser or $wgTitle. Keep them away!
  *
 <at>  <at>  -236,17 +236,11  <at>  <at> 

 		$this->replaceLinkHolders( $text );

-		# the position of the convert() call should not be changed. it
(Continue reading)

Tim Starling | 1 Mar 2006 02:57
Picon

phase3/languages Language.php, 1.800, 1.801 LanguageConverter.php, 1.12, 1.13

Update of /cvsroot/wikipedia/phase3/languages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22199/languages

Modified Files:
	Language.php LanguageConverter.php 
Log Message:
Fixed inappropriate access of $wgTitle from LanguageConverter.php.

Index: Language.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/languages/Language.php,v
retrieving revision 1.800
retrieving revision 1.801
diff -u -d -r1.800 -r1.801
--- Language.php	23 Feb 2006 20:03:50 -0000	1.800
+++ Language.php	1 Mar 2006 01:57:53 -0000	1.801
 <at>  <at>  -271,6 +271,7  <at>  <at> 
 	var $mLang;
 	function fakeConverter($langobj) {$this->mLang = $langobj;}
 	function convert($t, $i) {return $t;}
+	function parserConvert($t, $p) {return $t;}
 	function getVariants() { return array( $this->mLang->getCode() ); }
 	function getPreferredVariant() {return $this->mLang->getCode(); }
 	function findVariantLink(&$l, &$n) {}
 <at>  <at>  -1034,6 +1035,11  <at>  <at> 
 		return $this->mConverter->convert($text, $isTitle);
 	}

+	# Convert text from within Parser
+	function parserConvert( $text, &$parser ) {
(Continue reading)

Lupin | 1 Mar 2006 04:28
Picon

phase3/includes RawPage.php,1.39,1.40

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31232

Modified Files:
	RawPage.php 
Log Message:
Bug 5136: corner cases with relative oldids are wrong

Index: RawPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/RawPage.php,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- RawPage.php	26 Feb 2006 16:10:58 -0000	1.39
+++ RawPage.php	1 Mar 2006 03:28:48 -0000	1.40
 <at>  <at>  -44,10 +44,21  <at>  <at> 
 		$oldid = $this->mRequest->getInt( 'oldid' );
 		switch ( $wgRequest->getText( 'direction' ) ) {
 			case 'next': 
-				$oldid = $this->mTitle->getNextRevisionId( $oldid );
+				# output next revision, or nothing if there isn't one
+				if ( $oldid ) {
+					$oldid = $this->mTitle->getNextRevisionId( $oldid );
+				}
+				$oldid = $oldid ? $oldid : -1;
 				break;
 			case 'prev': 
-				$oldid = $this->mTitle->getPreviousRevisionId( $oldid );
+				# output previous revision, or nothing if there isn't one
(Continue reading)

Tim Starling | 1 Mar 2006 04:53
Picon

phase3/includes LinksUpdate.php,1.59,1.60

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19864/includes

Modified Files:
	LinksUpdate.php 
Log Message:
Invalidate image description page cache when the list of links changes

Index: LinksUpdate.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/LinksUpdate.php,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- LinksUpdate.php	28 Feb 2006 05:16:31 -0000	1.59
+++ LinksUpdate.php	1 Mar 2006 03:53:33 -0000	1.60
 <at>  <at>  -83,6 +83,10  <at>  <at> 
 		$this->incrTableUpdate( 'imagelinks', 'il', $this->getImageDeletions( $existing ),
 			$this->getImageInsertions( $existing ) );

+		# Invalidate all image description pages which had links added or removed
+		$imageUpdates = array_diff_key( $existing, $this->mImages ) + array_diff_key( $this->mImages,
$existing );
+		$this->invalidateImageDescriptions( $imageUpdates );
+
 		# External links
 		$existing = $this->getExistingExternals();
 		$this->incrTableUpdate( 'externallinks', 'el', $this->getExternalDeletions( $existing ),
 <at>  <at>  -107,9 +111,7  <at>  <at> 
 		$this->incrTableUpdate( 'categorylinks', 'cl', $this->getCategoryDeletions( $existing ),
(Continue reading)

Tim Starling | 1 Mar 2006 12:09
Picon

phase3/includes LinksUpdate.php,1.60,1.61

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10514/includes

Modified Files:
	LinksUpdate.php 
Log Message:
Fixed bug 2861. cl_timestamp isn't used for anything, but it's got no default so strictly speaking we have
to insert something there. Inserting 0 which the MySQL manual says is valid for timestamp columns. This is
easier than adding yet another SQL patch file to define a default.

Index: LinksUpdate.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/LinksUpdate.php,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- LinksUpdate.php	1 Mar 2006 03:53:33 -0000	1.60
+++ LinksUpdate.php	1 Mar 2006 11:09:18 -0000	1.61
 <at>  <at>  -320,7 +320,8  <at>  <at> 
 			$arr[] = array(
 				'cl_from'    => $this->mId,
 				'cl_to'      => $name,
-				'cl_sortkey' => $sortkey
+				'cl_sortkey' => $sortkey,
+				'cl_timestamp' => 0
 			);
 		}
 		return $arr;
Tim Starling | 1 Mar 2006 14:22
Picon

phase3/includes LinksUpdate.php,1.61,1.62

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29572/includes

Modified Files:
	LinksUpdate.php 
Log Message:
Put something sensible in cl_timestamp, with oracle compatibility

Index: LinksUpdate.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/LinksUpdate.php,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- LinksUpdate.php	1 Mar 2006 11:09:18 -0000	1.61
+++ LinksUpdate.php	1 Mar 2006 13:22:22 -0000	1.62
 <at>  <at>  -321,7 +321,7  <at>  <at> 
 				'cl_from'    => $this->mId,
 				'cl_to'      => $name,
 				'cl_sortkey' => $sortkey,
-				'cl_timestamp' => 0
+				'cl_timestamp' => $this->mDb->timestamp()
 			);
 		}
 		return $arr;
Lupin | 2 Mar 2006 00:00
Picon

phase3/languages Messages.php,1.19,1.20

Update of /cvsroot/wikipedia/phase3/languages
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30097/languages

Modified Files:
	Messages.php 
Log Message:
Patch for bug 4273: "New section" editing page should not submit when user hits Enter in Summary field.

Index: Messages.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/languages/Messages.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- Messages.php	26 Feb 2006 23:20:09 -0000	1.19
+++ Messages.php	1 Mar 2006 23:00:07 -0000	1.20
 <at>  <at>  -453,6 +453,7  <at>  <at> 
 'showlivepreview'	=> 'Live preview',
 'showdiff'	=> 'Show changes',
 'anoneditwarning' => 'You are not logged in. Your IP address will be recorded in this page\'s edit history.',
+'missingcommenttext' => 'Please enter a comment below.',
 'blockedtitle'	=> 'User is blocked',
 'blockedtext'	=> 'Your user name or IP address has been blocked by $1.
 The reason given is this:<br />\'\'$2\'\'<p>You may contact $1 or one of the other
Lupin | 2 Mar 2006 00:00
Picon

phase3/includes EditPage.php,1.266,1.267

Update of /cvsroot/wikipedia/phase3/includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30097/includes

Modified Files:
	EditPage.php 
Log Message:
Patch for bug 4273: "New section" editing page should not submit when user hits Enter in Summary field.

Index: EditPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/EditPage.php,v
retrieving revision 1.266
retrieving revision 1.267
diff -u -d -r1.266 -r1.267
--- EditPage.php	23 Feb 2006 20:03:49 -0000	1.266
+++ EditPage.php	1 Mar 2006 23:00:06 -0000	1.267
 <at>  <at>  -26,6 +26,7  <at>  <at> 
 	var $mTokenOk = true;
 	var $tooBig = false;
 	var $kblength = false;
+	var $missingComment = false;

 	# Form values
 	var $save = false, $preview = false, $diff = false;
 <at>  <at>  -630,6 +631,10  <at>  <at> 
 		wfProfileIn( "$fname-sectionanchor" );
 		$sectionanchor = '';
 		if( $this->section == 'new' ) {
+			if ( $this->textbox1 == '' ) {
+				$this->missingComment = true;
(Continue reading)


Gmane