lhc/web/wiklou.git
16 years agoAPI:
Yuri Astrakhan [Mon, 30 Jul 2007 08:09:15 +0000 (08:09 +0000)]
API:
* Added full text search in titles and content (list=search)
* (bug 10684) Expanded list=allusers functionality
* Possible breaking change: prop=revisions no longer includes pageid for rvprop=ids
* Bug fix: proper search escaping for SQL LIKE queries.

16 years agoUndo r24394; not really comfortable with this change. Probably not ideal for installa...
Brion Vibber [Mon, 30 Jul 2007 03:06:20 +0000 (03:06 +0000)]
Undo r24394; not really comfortable with this change. Probably not ideal for installations without thumbs enabled

16 years ago- new field: page_key, stores page_title in uppercase.
River Tarnell [Mon, 30 Jul 2007 01:56:37 +0000 (01:56 +0000)]
- new field: page_key, stores page_title in uppercase.
  schema change, maintenance script included

16 years agoSome style tweaks, per Brion
Rob Church [Mon, 30 Jul 2007 00:46:09 +0000 (00:46 +0000)]
Some style tweaks, per Brion

16 years agoFix.
Rotem Liss [Mon, 30 Jul 2007 00:42:02 +0000 (00:42 +0000)]
Fix.

16 years agoUpdate.
Rotem Liss [Mon, 30 Jul 2007 00:40:22 +0000 (00:40 +0000)]
Update.

16 years agoIntroduce OutputPage::addReturnTo(), with a view to replacing OutputPage::returnToMai...
Rob Church [Sun, 29 Jul 2007 23:53:45 +0000 (23:53 +0000)]
Introduce OutputPage::addReturnTo(), with a view to replacing OutputPage::returnToMain() [cleaner calling convention], and document the latter

16 years agoHopefully fix the problem with EXIF field names being listed as <exif-exif-make>...
Brion Vibber [Sun, 29 Jul 2007 23:39:54 +0000 (23:39 +0000)]
Hopefully fix the problem with EXIF field names being listed as <exif-exif-make> etc in the image table.
Since the type is already added to the sub-name, presumably the type ('exif') should not be added in again here.

16 years agofix an immediate php error, but result is still wrong -- we get 'exif-exif-make'...
Brion Vibber [Sun, 29 Jul 2007 23:37:14 +0000 (23:37 +0000)]
fix an immediate php error, but result is still wrong -- we get 'exif-exif-make' etc, since the tag already has 'exif' in the name. Something's broken, but not sure where

16 years agoLonger comment box
Rob Church [Sun, 29 Jul 2007 22:05:10 +0000 (22:05 +0000)]
Longer comment box

16 years agoLeft in a comment
Rob Church [Sun, 29 Jul 2007 22:03:22 +0000 (22:03 +0000)]
Left in a comment

16 years ago* (bug 10739) Users can now enter comments when reverting files
Rob Church [Sun, 29 Jul 2007 22:00:46 +0000 (22:00 +0000)]
* (bug 10739) Users can now enter comments when reverting files
* You'll see some commented-out bits left in indicating I had bigger plans for the interface - some notes there, in case it's possible in the future

16 years agoWhat is this, Blankety Blank?
Rob Church [Sun, 29 Jul 2007 20:45:07 +0000 (20:45 +0000)]
What is this, Blankety Blank?

16 years agoLucky bug
Rob Church [Sun, 29 Jul 2007 20:12:28 +0000 (20:12 +0000)]
Lucky bug

16 years agoRefactor addClickHandler() and introduce addHandler()
Rob Church [Sun, 29 Jul 2007 19:53:50 +0000 (19:53 +0000)]
Refactor addClickHandler() and introduce addHandler()

16 years agoNote
Rob Church [Sun, 29 Jul 2007 18:53:40 +0000 (18:53 +0000)]
Note

16 years agoWhoops, missed this one...
Rob Church [Sun, 29 Jul 2007 18:51:36 +0000 (18:51 +0000)]
Whoops, missed this one...

16 years ago* More precise comment
Rob Church [Sun, 29 Jul 2007 18:48:20 +0000 (18:48 +0000)]
* More precise comment
* Trim whitespace

16 years ago* Use a table to present file histories
Rob Church [Sun, 29 Jul 2007 18:41:49 +0000 (18:41 +0000)]
* Use a table to present file histories
* (bug 10741) Don't show deletion links for non-sysops [in file histories]

16 years agostrpos() !== false is faster than strstr()
Rob Church [Sun, 29 Jul 2007 16:50:40 +0000 (16:50 +0000)]
strpos() !== false is faster than strstr()

16 years agoDocument this file all over
Rob Church [Sun, 29 Jul 2007 15:21:01 +0000 (15:21 +0000)]
Document this file all over

16 years agoTweak comment
Rob Church [Sun, 29 Jul 2007 14:32:44 +0000 (14:32 +0000)]
Tweak comment

16 years ago(bug 10732 and others) Further fixes to protect chaining JavaScript; introduce addCli...
Rob Church [Sun, 29 Jul 2007 14:32:26 +0000 (14:32 +0000)]
(bug 10732 and others) Further fixes to protect chaining JavaScript; introduce addClickHandler() to work around missing addEventListener() in IE and other browsers that suck

16 years agoRebuild.
Rotem Liss [Sun, 29 Jul 2007 02:25:15 +0000 (02:25 +0000)]
Rebuild.

16 years agoUse the same order as in the English messages file.
Rotem Liss [Sun, 29 Jul 2007 02:22:18 +0000 (02:22 +0000)]
Use the same order as in the English messages file.

16 years agoA message (fileexists) with the same name of another one was introduced in r24313...
Rotem Liss [Sun, 29 Jul 2007 02:18:16 +0000 (02:18 +0000)]
A message (fileexists) with the same name of another one was introduced in r24313; renaming it to fileexistserror. Other messages files that updated since this revision may also have to rename the message.

16 years agoUse native newlines when rebuilding a messages file.
Rotem Liss [Sun, 29 Jul 2007 02:04:43 +0000 (02:04 +0000)]
Use native newlines when rebuilding a messages file.

16 years agoFix.
Rotem Liss [Sun, 29 Jul 2007 01:57:45 +0000 (01:57 +0000)]
Fix.

16 years agoWhee, turns out the error-puking JavaScript made it into 1.10, so this needs a RELEAS...
Rob Church [Sat, 28 Jul 2007 23:13:48 +0000 (23:13 +0000)]
Whee, turns out the error-puking JavaScript made it into 1.10, so this needs a RELEASE NOTE!

16 years agoBump $wgStyleVersion
Rob Church [Sat, 28 Jul 2007 23:10:58 +0000 (23:10 +0000)]
Bump $wgStyleVersion

16 years ago* (bug 10732) Protection chaining checkbox broken - this appears to have regressed...
Rob Church [Sat, 28 Jul 2007 23:09:16 +0000 (23:09 +0000)]
* (bug 10732) Protection chaining checkbox broken - this appears to have regressed in r24272/r24274; we might do worse than to fix things up so checkboxes without a certain class can't be shift-clicked or whatever
* Rewrite a couple bits in allowCascade() - isCascadeableLevel() was inefficient, and the function was throwing up errors and whatnot due to bad checking of selection indexes and so on

16 years ago* Allow overwriting existing files with conflicting names using the --override option
Rob Church [Sat, 28 Jul 2007 22:21:23 +0000 (22:21 +0000)]
* Allow overwriting existing files with conflicting names using the --override option
* More useful output (no. of files added, overwritten, skipped)
* Trim some whitespace and kill a dud global \o/

16 years agoCommitting some work in progress -- abstraction of handler-specific metadata formatti...
Tim Starling [Sat, 28 Jul 2007 01:15:35 +0000 (01:15 +0000)]
Committing some work in progress -- abstraction of handler-specific metadata formatting. The return format of MediaHandler::formatMetadata() might still need some tweaking, but I believe there is feature parity at this point.

16 years agoVarious updates to Postgres schema and updater.
Greg Sabino Mullane [Fri, 27 Jul 2007 12:23:58 +0000 (12:23 +0000)]
Various updates to Postgres schema and updater.

16 years agoAdd ar_page column
Greg Sabino Mullane [Fri, 27 Jul 2007 11:52:38 +0000 (11:52 +0000)]
Add ar_page column

16 years agoAdding "thumb" to the image editbutton. In this way it's mainly used.
Raimond Spekking [Thu, 26 Jul 2007 11:05:47 +0000 (11:05 +0000)]
Adding "thumb" to the image editbutton. In this way it's mainly used.
Per suggestion of Denis Barthel (de.wp)

16 years ago(bug 10701) Link to Special:Listusers in default Special:Statistics messages
Rob Church [Wed, 25 Jul 2007 22:47:01 +0000 (22:47 +0000)]
(bug 10701) Link to Special:Listusers in default Special:Statistics messages

16 years ago* Updates to Slovak (sk) by Helix84
Niklas Laxström [Wed, 25 Jul 2007 16:41:25 +0000 (16:41 +0000)]
* Updates to Slovak (sk) by Helix84

16 years agoAPI: Fix for bug 10662 imageinfo is not cleared for each page
Yuri Astrakhan [Wed, 25 Jul 2007 06:51:05 +0000 (06:51 +0000)]
API: Fix for bug 10662 imageinfo is not cleared for each page

16 years agoTrivial cosmetic anal-retentive adjustment to four wfDebug() edit-conflict debugging...
Nick Jenkins [Wed, 25 Jul 2007 01:53:04 +0000 (01:53 +0000)]
Trivial cosmetic anal-retentive adjustment to four wfDebug() edit-conflict debugging messages.

16 years agoTweak to prevent strict standards warning: Only variables should be assigned by refer...
Nick Jenkins [Wed, 25 Jul 2007 01:46:50 +0000 (01:46 +0000)]
Tweak to prevent strict standards warning: Only variables should be assigned by reference in includes/api/ApiLogin.php on line 154

16 years agoIndonesian (id) localisation updates.
Ivan Lanin [Tue, 24 Jul 2007 19:57:33 +0000 (19:57 +0000)]
Indonesian (id) localisation updates.

16 years agoUpdates German
Raimond Spekking [Tue, 24 Jul 2007 11:18:26 +0000 (11:18 +0000)]
Updates German

16 years ago* (bug 10653) Update Chinese translations
Raimond Spekking [Tue, 24 Jul 2007 08:18:57 +0000 (08:18 +0000)]
* (bug 10653) Update Chinese translations
  Patch by Shinjiman

16 years ago* (bug 10674) Update Thai translation
Raimond Spekking [Tue, 24 Jul 2007 07:57:54 +0000 (07:57 +0000)]
* (bug 10674) Update Thai translation
  Patch by Manop K

16 years ago*Look only at unique keys. If a file has versions that have the same key, this can...
Aaron Schulz [Mon, 23 Jul 2007 23:46:53 +0000 (23:46 +0000)]
*Look only at unique keys. If a file has versions that have the same key, this can otherwise through errors trying to delete non-existent files during cleanup.

16 years agofixed comment
Tim Starling [Mon, 23 Jul 2007 22:38:12 +0000 (22:38 +0000)]
fixed comment

16 years agoAdded ar_page
Tim Starling [Mon, 23 Jul 2007 22:37:52 +0000 (22:37 +0000)]
Added ar_page

16 years ago(bug 10672) Make Linker::doEditSectionLink protected, not private
Aryeh Gregor [Mon, 23 Jul 2007 21:40:05 +0000 (21:40 +0000)]
(bug 10672) Make Linker::doEditSectionLink protected, not private

16 years agoOptimize User::getID() for special cases, and User::isLoggedIn() generally (the latte...
Aryeh Gregor [Mon, 23 Jul 2007 19:39:53 +0000 (19:39 +0000)]
Optimize User::getID() for special cases, and User::isLoggedIn() generally (the latter seems to have always required a database query in the past, when in fact it never should).

16 years ago32 width
Tim Starling [Mon, 23 Jul 2007 18:28:52 +0000 (18:28 +0000)]
32 width

16 years agoFixed LocalRepo::cleanupDeletedBatch(), wasn't working
Tim Starling [Mon, 23 Jul 2007 17:22:09 +0000 (17:22 +0000)]
Fixed LocalRepo::cleanupDeletedBatch(), wasn't working

16 years agoSeed subdirs in the deleted zone with a blank index.html file, to prevent crawling.
Tim Starling [Mon, 23 Jul 2007 17:21:20 +0000 (17:21 +0000)]
Seed subdirs in the deleted zone with a blank index.html file, to prevent crawling.

16 years agoDebugging
Tim Starling [Mon, 23 Jul 2007 17:19:56 +0000 (17:19 +0000)]
Debugging

16 years agodebugging code accidentally left in
Tim Starling [Mon, 23 Jul 2007 17:18:32 +0000 (17:18 +0000)]
debugging code accidentally left in

16 years agos/one time/once/
Rob Church [Mon, 23 Jul 2007 08:58:09 +0000 (08:58 +0000)]
s/one time/once/

16 years ago*grr
Aaron Schulz [Mon, 23 Jul 2007 03:03:04 +0000 (03:03 +0000)]
*grr

16 years agoSkip the difference engine cache when 'action=purge' is used while requesting a diffe...
Rob Church [Sun, 22 Jul 2007 23:37:01 +0000 (23:37 +0000)]
Skip the difference engine cache when 'action=purge' is used while requesting a difference page, to allow refreshing the cache in case of errors

16 years agoBug number for r24323
Rob Church [Sun, 22 Jul 2007 23:26:04 +0000 (23:26 +0000)]
Bug number for r24323

16 years ago(bug 9575) Accept upload description from GET parameters
Rob Church [Sun, 22 Jul 2007 23:25:26 +0000 (23:25 +0000)]
(bug 9575) Accept upload description from GET parameters

16 years ago* Pass new Revision to the 'ArticleInsertComplete' and 'ArticleSaveComplete' hooks...
Rob Church [Sun, 22 Jul 2007 23:16:48 +0000 (23:16 +0000)]
* Pass new Revision to the 'ArticleInsertComplete' and 'ArticleSaveComplete' hooks; see docs/hooks.txt for more information
* Document 'ArticleInsertComplete' hook

16 years agoCorrect language - not "no object caching", rather, "no object caching [using the...
Rob Church [Sun, 22 Jul 2007 21:55:52 +0000 (21:55 +0000)]
Correct language - not "no object caching", rather, "no object caching [using the items we haven't detected]"

16 years agoAdding missing translations for da
Anders Wegge Jakobsen [Sun, 22 Jul 2007 21:30:21 +0000 (21:30 +0000)]
Adding missing translations for da

16 years agoUpdate.
Rotem Liss [Sun, 22 Jul 2007 15:29:44 +0000 (15:29 +0000)]
Update.

16 years agoCommas at the end of enumerations only works in PHP...
Jens Frank [Sun, 22 Jul 2007 15:15:58 +0000 (15:15 +0000)]
Commas at the end of enumerations only works in PHP...

16 years agorv again
Tim Starling [Sun, 22 Jul 2007 15:07:54 +0000 (15:07 +0000)]
rv again

16 years ago* Introduced FileRepoStatus -- result class for file repo operations.
Tim Starling [Sun, 22 Jul 2007 14:45:12 +0000 (14:45 +0000)]
* Introduced FileRepoStatus -- result class for file repo operations.
* Ported file delete/restore to the filerepo framework. Some user-visible changes in error reporting.
* $wgSaveDeletedFiles has been removed, the feature is now enabled unconditionally. Added a "deleted" directory for the default location, protected by a .htaccess file and the practical obscurity of content hashes.
* Fixed bug 2735: "Preview" shown in title bar for action=submit on special pages
* Removed "restore" links from the deletion log embedded in Special:Undelete
* Added img_sha1/oi_sha1 fields, preserved through upload, delete and restore
* Referenced the new oi_metadata etc. fields to preserve metadata across upload and delete/restore.

16 years ago*Store page_id in ar_page
Aaron Schulz [Sun, 22 Jul 2007 03:26:50 +0000 (03:26 +0000)]
*Store page_id in ar_page

16 years ago*Add ar_page; allows for easier restoration when several large pages are merged into...
Aaron Schulz [Sun, 22 Jul 2007 01:40:58 +0000 (01:40 +0000)]
*Add ar_page; allows for easier restoration when several large pages are merged into one deleted history.

16 years agoIntroduce 'UserGetRights' hook; see docs/hooks.txt for more information
Rob Church [Sat, 21 Jul 2007 01:00:42 +0000 (01:00 +0000)]
Introduce 'UserGetRights' hook; see docs/hooks.txt for more information

16 years agoRemove green blob from the centre (was supposed to be part of the "scaled-down flower...
Rob Church [Sat, 21 Jul 2007 00:44:35 +0000 (00:44 +0000)]
Remove green blob from the centre (was supposed to be part of the "scaled-down flower" concept, but just looks odd at this size)

16 years agopretty up the hook error message with an explanation of what it should do instead
Brion Vibber [Fri, 20 Jul 2007 15:15:09 +0000 (15:15 +0000)]
pretty up the hook error message with an explanation of what it should do instead

16 years ago* Removed obsolete maintenance/changeuser.sql script; use RenameUser extension
Brion Vibber [Fri, 20 Jul 2007 13:42:13 +0000 (13:42 +0000)]
* Removed obsolete maintenance/changeuser.sql script; use RenameUser extension

16 years agothis has been replaced by t/inc/Sanitizer.t
Ævar Arnfjörð Bjarmason [Fri, 20 Jul 2007 00:15:12 +0000 (00:15 +0000)]
this has been replaced by t/inc/Sanitizer.t

16 years agodon't slurp the whole file, we only need to test line 1, this speeds things up immensely
Ævar Arnfjörð Bjarmason [Fri, 20 Jul 2007 00:05:48 +0000 (00:05 +0000)]
don't slurp the whole file, we only need to test line 1, this speeds things up immensely

16 years agoReport the lines win32 newlines are found at
Ævar Arnfjörð Bjarmason [Fri, 20 Jul 2007 00:05:45 +0000 (00:05 +0000)]
Report the lines win32 newlines are found at

16 years agoDon't do gzip compression if the URL path ends in .gz or .tgz
Brion Vibber [Thu, 19 Jul 2007 19:06:32 +0000 (19:06 +0000)]
Don't do gzip compression if the URL path ends in .gz or .tgz
This confuses Safari and triggers a download of the page,
even though it's pretty clearly labeled as viewable HTML.
Bad Safari! Bad!

Bug is still present in Safari 2.0.4/Mac and 3.0.2/Win.

We have had a live hack for this on Wikimedia sites for .gz files;
hadn't noticed the .tgz problem before though.

While I was in there, also made a tweak so wfGzipHandler() makes
sure the Vary: header is there whether the current agent sent us
an Accept-Encoding header or not.

16 years agorename checkboxMouseupHandler to checkboxClickHandler for the feel-good value of...
Brion Vibber [Thu, 19 Jul 2007 15:49:25 +0000 (15:49 +0000)]
rename checkboxMouseupHandler to checkboxClickHandler for the feel-good value of non-confusing names :D

16 years ago* (bug 10642) Fix shift-click checkbox behavior for Opera 9.0+ and 6.0
Brion Vibber [Thu, 19 Jul 2007 15:33:12 +0000 (15:33 +0000)]
* (bug 10642) Fix shift-click checkbox behavior for Opera 9.0+ and 6.0

The previous code was using the 'onmouseup' event to trigger the shift-click multiple selection behavior. This had a number of problems:
* Opera 6.0 doesn't fire this event on radio buttons
* Opera 7.x and 8.x flip the check state before sending the event, while Opera 9.x and other browsers flip it after
* A UA check for Opera was used to work around the state inconsistency for 7.x and 8.x, which broke on 9.x
* Minor quibble: the event fires if you click outside the radio and release while the mouse is over it, though that wouldn't normally count as a click on the radio.

I've switched it to use the 'onclick' event handler instead, which resolves this:
* Opera 6.x fires this event
* All tested browsers have flipped the check state before the event, so special-case code can be removed.

Tested browsers:
* Opera 9.2, 9.0, 8.5, 8.0, 7.5, 6.0/Mac
* Firefox 2/Mac
* Safari 2/Mac
* Safari 3/Win
* IE 7/Win
* IE 6/Win
* IE 5.2/Mac
* iCab 3/Mac
* Mozilla 1.1/Mac

16 years agoand bump style ver
Brion Vibber [Thu, 19 Jul 2007 14:46:14 +0000 (14:46 +0000)]
and bump style ver

16 years agobug 10638 -- fix regression in Opera < 9.5 by bad version check in r24163
Brion Vibber [Thu, 19 Jul 2007 14:45:56 +0000 (14:45 +0000)]
bug 10638 -- fix regression in Opera < 9.5 by bad version check in r24163

16 years agoUnderscores in namespaces are useful, thanks to Nikerabbit
Raimond Spekking [Thu, 19 Jul 2007 14:24:09 +0000 (14:24 +0000)]
Underscores in namespaces are useful, thanks to Nikerabbit

16 years agofix regressions from r24262/24263
Raimond Spekking [Thu, 19 Jul 2007 09:39:36 +0000 (09:39 +0000)]
fix regressions from r24262/24263

16 years ago* (bug 10637) Update Thai translation
Raimond Spekking [Thu, 19 Jul 2007 09:02:32 +0000 (09:02 +0000)]
* (bug 10637) Update Thai translation
  Patch by Manop K

16 years ago* (bug 10636) Update Thai translation
Raimond Spekking [Thu, 19 Jul 2007 08:17:42 +0000 (08:17 +0000)]
* (bug 10636) Update Thai translation
  Patch by Manop K

16 years ago* Updates to Norwegian (no) by Jhs
Niklas Laxström [Thu, 19 Jul 2007 08:04:20 +0000 (08:04 +0000)]
* Updates to Norwegian (no) by Jhs

16 years ago* Updates to Italian (it) by BrokenArrow
Niklas Laxström [Thu, 19 Jul 2007 07:58:12 +0000 (07:58 +0000)]
* Updates to Italian (it) by BrokenArrow

16 years ago* (bug 10591) Use Arabic numerals (0,1,2...) for the Malayam language
Raimond Spekking [Thu, 19 Jul 2007 07:37:38 +0000 (07:37 +0000)]
* (bug 10591) Use Arabic numerals (0,1,2...) for the Malayam language

16 years agoWhile we value our third-party contributors, we don't generally mention them in the...
Aryeh Gregor [Thu, 19 Jul 2007 05:29:55 +0000 (05:29 +0000)]
While we value our third-party contributors, we don't generally mention them in the RELEASE-NOTES.  Might be a good idea to start, though?  Maybe make a "contributors" section?  Hmm.  An idea for another version, perhaps.

16 years agoFix several JS problems with MSIE/Mac:
Brion Vibber [Wed, 18 Jul 2007 22:13:35 +0000 (22:13 +0000)]
Fix several JS problems with MSIE/Mac:
* Use of Array.push() broke things, as it's not missing. Work around with a[a.length] = foo
 -- shift-checkbox selection and sortable table setup were causing JS errors on every page view
* Use of 'if (x in arr)' breaks *parsing* in MSIE/Mac. :P Work around work 'for (y in arr) if (x == y)'
 -- broke upload.js, so the license selector hackaround didn't get run
* Upload AJAX calls weren't checking for client compatibility before doing things
 -- littered spinners on the page

16 years ago* (bug 10616) Update Chinese translations
Raimond Spekking [Wed, 18 Jul 2007 22:01:41 +0000 (22:01 +0000)]
* (bug 10616) Update Chinese translations
  Patch by Shinjiman

16 years ago(bug 10634) Fake out log_id until the column is live on Wikimedia
Rob Church [Wed, 18 Jul 2007 21:47:09 +0000 (21:47 +0000)]
(bug 10634) Fake out log_id until the column is live on Wikimedia

16 years agobump style version for the last commit removing the recently-added 'overflow: hidden...
Brion Vibber [Wed, 18 Jul 2007 20:48:56 +0000 (20:48 +0000)]
bump style version for the last commit removing the recently-added 'overflow: hidden' on headers.
That had RTL issues, and also broke all headers in IE/Mac 5.x

16 years agoPartial revert of r24168: it *does* have other effects, it breaks headings on RTL...
Rotem Liss [Wed, 18 Jul 2007 20:43:59 +0000 (20:43 +0000)]
Partial revert of r24168: it *does* have other effects, it breaks headings on RTL wikis (each heading near left-floated items, e.g. images or infoboxes, is moved to the right, over (or under) the sidebar.

16 years agoFix for site stats changes... sanity checks cause a rebuild of stats now, so need...
Brion Vibber [Wed, 18 Jul 2007 20:13:08 +0000 (20:13 +0000)]
Fix for site stats changes... sanity checks cause a rebuild of stats now, so need more tables available in test harness, and there are 2 articles created at that point in the test

16 years agoRevert r24237, r24239, r24245 for the moment. We expect transwiki system to change...
Brion Vibber [Wed, 18 Jul 2007 20:05:58 +0000 (20:05 +0000)]
Revert r24237, r24239, r24245 for the moment. We expect transwiki system to change to allow multiple pages in a batch in future, and the implementation for renaming here seems a bit precarious.

16 years agoFix double-escaping
Rob Church [Wed, 18 Jul 2007 19:48:43 +0000 (19:48 +0000)]
Fix double-escaping

16 years agoTweaks to the AJAX license preview:
Brion Vibber [Wed, 18 Jul 2007 19:19:50 +0000 (19:19 +0000)]
Tweaks to the AJAX license preview:
* Rename 'licence' to 'license' for consistency with the rest of the code.
* The preview code was assuming simple templates with no parameters and no subst:s, which failed on most of the selections used now on Commons. Now doing a full pre-save transform and parse on {{$license}}, just as will be done on the final save.
* When selecting 'None' again after another option, the preview pane is now cleared.

A fun 'todo' might be to also pass the currently selected filename, if any, to the license preview. Some of the templates in use attempt to use the current-page-name variables to include a self-link. At the moment using a hardcoded 'Image:Sample.jpg' for the virtual title on the preview rendering.

16 years agoremove spurious htmlspecialchars() on input; remove unnecessary null checks
Brion Vibber [Wed, 18 Jul 2007 18:46:07 +0000 (18:46 +0000)]
remove spurious htmlspecialchars() on input; remove unnecessary null checks

16 years agoUpdate.
Rotem Liss [Wed, 18 Jul 2007 16:18:34 +0000 (16:18 +0000)]
Update.