yurik | 1 Jul 2007 08:45
Picon
Favicon

SVN: [23596] trunk/phase3/includes/api/ApiQueryRevisions.php

Revision: 23596
Author:   yurik
Date:     2007-07-01 06:45:14 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
API: Reverted back to r23531 for the reasons listed in bug 10297

Modified Paths:
--------------
    trunk/phase3/includes/api/ApiQueryRevisions.php

Modified: trunk/phase3/includes/api/ApiQueryRevisions.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryRevisions.php	2007-06-30 20:42:39 UTC (rev 23595)
+++ trunk/phase3/includes/api/ApiQueryRevisions.php	2007-07-01 06:45:14 UTC (rev 23596)
 <at>  <at>  -41,7 +41,7  <at>  <at> 
 		parent :: __construct($query, $moduleName, 'rv');
 	}

-	private $fld_ids = false, $fld_lastid = false, $fld_flags = false, $fld_timestamp = false, 
+	private $fld_ids = false, $fld_flags = false, $fld_timestamp = false, 
 			$fld_comment = false, $fld_user = false, $fld_content = false;

 	public function execute() {
 <at>  <at>  -78,13 +78,10  <at>  <at> 
 		$this->addFields('rev_page');

 		// Optional fields
-		// lastid automatically sets ids and timestamp
(Continue reading)

amidaniel | 1 Jul 2007 11:53
Picon
Favicon

SVN: [23597] trunk/extensions

Revision: 23597
Author:   amidaniel
Date:     2007-07-01 09:53:26 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
New extension to facilitate the signing of petitions and other documents. Suprising stable seeing as I started work on it only two days ago; nonetheless, it's certainly not stable enough for real use at this point.

Added Paths:
-----------
    trunk/extensions/SignDocument/
    trunk/extensions/SignDocument/README.txt
    trunk/extensions/SignDocument/SignDocument.i18n.php
    trunk/extensions/SignDocument/SignDocument.php
    trunk/extensions/SignDocument/SignDocumentHelpers.php
    trunk/extensions/SignDocument/SpecialCreateSignDocument.i18n.php
    trunk/extensions/SignDocument/SpecialCreateSignDocument.php
    trunk/extensions/SignDocument/SpecialSignDocument.i18n.php
    trunk/extensions/SignDocument/SpecialSignDocument.php
    trunk/extensions/SignDocument/signdocument.sql

Added: trunk/extensions/SignDocument/README.txt
===================================================================
--- trunk/extensions/SignDocument/README.txt	                        (rev 0)
+++ trunk/extensions/SignDocument/README.txt	2007-07-01 09:53:26 UTC (rev 23597)
 <at>  <at>  -0,0 +1,127  <at>  <at> 
+SignDocument MediaWiki Extension
+By: Daniel Cannon (AmiDaniel)
+------------------------------------------------------------------------------
+
(Continue reading)

amidaniel | 1 Jul 2007 12:10
Picon
Favicon

SVN: [23598] trunk/extensions/SignDocument

Revision: 23598
Author:   amidaniel
Date:     2007-07-01 10:10:12 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
Couple bugfixes -- damn whitespace.

Modified Paths:
--------------
    trunk/extensions/SignDocument/SignDocument.php
    trunk/extensions/SignDocument/SpecialCreateSignDocument.php

Modified: trunk/extensions/SignDocument/SignDocument.php
===================================================================
--- trunk/extensions/SignDocument/SignDocument.php	2007-07-01 09:53:26 UTC (rev 23597)
+++ trunk/extensions/SignDocument/SignDocument.php	2007-07-01 10:10:12 UTC (rev 23598)
 <at>  <at>  -94,4 +94,4  <at>  <at> 
 		'id=' . $sig->mId );

 }
-?>			       
+?> 

Modified: trunk/extensions/SignDocument/SpecialCreateSignDocument.php
===================================================================
--- trunk/extensions/SignDocument/SpecialCreateSignDocument.php	2007-07-01 09:53:26 UTC (rev 23597)
+++ trunk/extensions/SignDocument/SpecialCreateSignDocument.php	2007-07-01 10:10:12 UTC (rev 23598)
 <at>  <at>  -58,8 +58,8  <at>  <at> 
 			</td><td><input id="minage" type="text" name="minage" style="width: 400px;"/>
(Continue reading)

amidaniel | 1 Jul 2007 12:18
Picon
Favicon

SVN: [23599] trunk/extensions/SignDocument/SignDocument.php

Revision: 23599
Author:   amidaniel
Date:     2007-07-01 10:18:06 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
Woops, missed one.

Modified Paths:
--------------
    trunk/extensions/SignDocument/SignDocument.php

Modified: trunk/extensions/SignDocument/SignDocument.php
===================================================================
--- trunk/extensions/SignDocument/SignDocument.php	2007-07-01 10:10:12 UTC (rev 23598)
+++ trunk/extensions/SignDocument/SignDocument.php	2007-07-01 10:18:06 UTC (rev 23599)
 <at>  <at>  -94,4 +94,4  <at>  <at> 
 		'id=' . $sig->mId );

 }
-?> 
+?>
amidaniel | 1 Jul 2007 12:27
Picon
Favicon

SVN: [23600] trunk/extensions/SignDocument/SpecialCreateSignDocument.php

Revision: 23600
Author:   amidaniel
Date:     2007-07-01 10:27:53 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
Use $wgTitle->escapeLocalUrl() instead of $_SERVER['PHP_SELF'].

Modified Paths:
--------------
    trunk/extensions/SignDocument/SpecialCreateSignDocument.php

Modified: trunk/extensions/SignDocument/SpecialCreateSignDocument.php
===================================================================
--- trunk/extensions/SignDocument/SpecialCreateSignDocument.php	2007-07-01 10:18:06 UTC (rev 23599)
+++ trunk/extensions/SignDocument/SpecialCreateSignDocument.php	2007-07-01 10:27:53 UTC (rev 23600)
 <at>  <at>  -33,12 +33,12  <at>  <at> 
 	}

 	function buildCreateForm() {
-		global $wgOut, $wgGroupPermissions;
+		global $wgOut, $wgGroupPermissions, $wgTitle;

 		$wgOut->addWikiText( wfMsg( 'createsigndoc-head' ) );

 		$wgOut->addHTML('
-			<form action="'. $_SERVER['PHP_SELF'] .'" method="post">
+			<form action="'. $wgTitle->escapeLocalUrl() .'" method="post">
 			<table><tr><td>
 			<strong>' . wfMsg( 'createsigndoc-pagename' ) . '&nbsp;</strong>
(Continue reading)

amidaniel | 1 Jul 2007 12:50
Picon
Favicon

SVN: [23601] trunk/extensions/SignDocument/README.txt

Revision: 23601
Author:   amidaniel
Date:     2007-07-01 10:50:18 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
Fix a couple goofs in the README.

Modified Paths:
--------------
    trunk/extensions/SignDocument/README.txt

Modified: trunk/extensions/SignDocument/README.txt
===================================================================
--- trunk/extensions/SignDocument/README.txt	2007-07-01 10:27:53 UTC (rev 23600)
+++ trunk/extensions/SignDocument/README.txt	2007-07-01 10:50:18 UTC (rev 23601)
 <at>  <at>  -39,7 +39,7  <at>  <at> 
 	applications).

 	[1.4] Then, add to your LocalSettings.php: 
-	"require_once( '$IP/extensions/SignDocument/SignDocument.php' )".
+	'require_once( "$IP/extensions/SignDocument/SignDocument.php" )'.

 	[1.5] You can then add a user on your wiki to the group "sigadmin" via
 	Special:Userrights.
 <at>  <at>  -106,7 +106,7  <at>  <at> 
 [4] File manifest
 	[4.1] README.txt
 		-> This file.
-	[4.2] signdocument.php
(Continue reading)

magnusmanske | 1 Jul 2007 15:26
Picon
Favicon

SVN: [23602] trunk/phase3

Revision: 23602
Author:   magnusmanske
Date:     2007-07-01 13:26:57 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
New javascript for upload page that will show a warning if a file with the "destination filename" already
exists. This uses api.php. As it is only used after someone already specified a file to upload, stress to
servers should be minimal. Note that there is a hardcoded English warning text in there; not sure how to
i18e it.

Modified Paths:
--------------
    trunk/phase3/RELEASE-NOTES
    trunk/phase3/includes/SpecialUpload.php
    trunk/phase3/skins/common/wikibits.js

Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES	2007-07-01 10:50:18 UTC (rev 23601)
+++ trunk/phase3/RELEASE-NOTES	2007-07-01 13:26:57 UTC (rev 23602)
 <at>  <at>  -114,6 +114,7  <at>  <at> 
   Patch by Edward Z. Yang.
 * Introduce 'ShowRawCssJs' hook; see docs/hooks.txt for more information
 * (bug 10404) Show rights log fragment for the selected user in Special:Userrights
+* New javascript for upload page that will show a warning if a file with the "destination filename" already exists.

 == Bugfixes since 1.10 ==

Modified: trunk/phase3/includes/SpecialUpload.php
(Continue reading)

magnusmanske | 1 Jul 2007 15:38
Picon
Favicon

SVN: [23603] trunk/phase3/skins/common/wikibits.js

Revision: 23603
Author:   magnusmanske
Date:     2007-07-01 13:38:29 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
making better use of DOM

Modified Paths:
--------------
    trunk/phase3/skins/common/wikibits.js

Modified: trunk/phase3/skins/common/wikibits.js
===================================================================
--- trunk/phase3/skins/common/wikibits.js	2007-07-01 13:26:57 UTC (rev 23602)
+++ trunk/phase3/skins/common/wikibits.js	2007-07-01 13:38:29 UTC (rev 23603)
 <at>  <at>  -793,8 +793,12  <at>  <at> 

   // Set warning
   var thetd = destFile.parentNode ;
-//  thetd.innerHTML += url ;
-  thetd.innerHTML += "<span id='existsWarning' style='color:red'> A file with this name already
exists; uploading under the same name will replace it!</span>" ;
+  var nn = document.createElement("span") ;
+  nn.id = "existsWarning" ;
+  nn.style.color = "red" ;
+  var nt = document.createTextNode(" A file with this name already exists; uploading under the same name
will replace it!");
+  nn.appendChild ( nt ) ;
+  thetd.appendChild ( nn ) ;
(Continue reading)

tstarling | 1 Jul 2007 15:56
Picon
Favicon

SVN: [23604] trunk/phase3/includes/SpecialMovepage.php

Revision: 23604
Author:   tstarling
Date:     2007-07-01 13:56:05 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
Fixed unnecessary use of the replaceafter option to wfMsgExt(). Using it causes links generated in
wikitext from parameters to not work, due to conversion of $1 to %241. This does mean the success links are
coloured like external links, but on the plus side, it means you can have things like "check
[[Special:Whatlinkshere/$1|what links here]] and fix double redirects". Backwards compatibility
with messages is retained.

Modified Paths:
--------------
    trunk/phase3/includes/SpecialMovepage.php

Modified: trunk/phase3/includes/SpecialMovepage.php
===================================================================
--- trunk/phase3/includes/SpecialMovepage.php	2007-07-01 13:38:29 UTC (rev 23603)
+++ trunk/phase3/includes/SpecialMovepage.php	2007-07-01 13:56:05 UTC (rev 23604)
 <at>  <at>  -274,22 +274,25  <at>  <at> 
 		$old = Title::newFromText( $wgRequest->getText( 'oldtitle' ) );
 		$new = Title::newFromText( $wgRequest->getText( 'newtitle' ) );
 		$talkmoved = $wgRequest->getVal( 'talkmoved' );
-		
-		$olink = $wgUser->getSkin()->makeKnownLinkObj( $old, '', 'redirect=no' );
-		$nlink = $wgUser->getSkin()->makeKnownLinkObj( $new );
+		$oldUrl = $old->getFullUrl( 'redirect=no' );
+		$newUrl = $new->getFullURl();
+		$oldText = $old->getPrefixedText();
(Continue reading)

kim | 1 Jul 2007 16:34
Picon
Favicon

SVN: [23605] trunk/extensions/Wikidata/OmegaWiki

Revision: 23605
Author:   kim
Date:     2007-07-01 14:34:24 +0000 (Sun, 01 Jul 2007)

Log Message:
-----------
Work on unit tests
Test.skeleton.php can be used to write future PHPUnit test cases.

RecordHelperTest.php is a (still skeletal) PHPUnit test case for RecordHelper.

Modified Paths:
--------------
    trunk/extensions/Wikidata/OmegaWiki/GetDM.php
    trunk/extensions/Wikidata/OmegaWiki/RecordHelper.php

Added Paths:
-----------
    trunk/extensions/Wikidata/OmegaWiki/RecordHelperTest.php
    trunk/extensions/Wikidata/OmegaWiki/Test.skeleton.php

Modified: trunk/extensions/Wikidata/OmegaWiki/GetDM.php
===================================================================
--- trunk/extensions/Wikidata/OmegaWiki/GetDM.php	2007-07-01 13:56:05 UTC (rev 23604)
+++ trunk/extensions/Wikidata/OmegaWiki/GetDM.php	2007-07-01 14:34:24 UTC (rev 23605)
 <at>  <at>  -2,7 +2,7  <at>  <at> 

 define('MEDIAWIKI', true );

-# do we seriously need ALL of thesE?
(Continue reading)


Gmane