Commit graph

162 commits

Author SHA1 Message Date
Platonides
1af741ee27 Use the canonical names for classes. 2010-07-27 18:33:04 +00:00
Danny B
3aeb335d2d * replacing deprecated <s> with <del> 2010-07-23 16:59:29 +00:00
Alexandre Emsenhuber
85e870b711 * Document a bit
* Fix some doxygen warnings
* Use spaces instead of tabs in the middle of lines
2010-01-23 20:07:17 +00:00
Chad Horohoe
a4e5e935b6 Mass convert NULL -> null. Left strings and comments alone, obviously. 2009-12-11 21:07:27 +00:00
Alexandre Emsenhuber
b4b89afea3 fix some doxygen warnings 2009-10-04 21:21:30 +00:00
Siebrand Mazeland
3a7c7624be Add optional separate date and time parameters for 'perfcachedts' in query pages
* update use in FlaggedRevs
* update check blacklist in Translate
2009-09-26 19:08:54 +00:00
Tim Starling
7b7f9f0d4d Comments and whitespace fixes only. 2009-09-10 06:43:01 +00:00
Michael Dale
aefc40d749 here it is ... the upload-api, script-server, js2 (javascript phase2) branch merge 1st attempt.
Here is a short overview of changes and associated default configuration variables (most everything is off by default) also see ~soon to be updated~: http://www.mediawiki.org/wiki/Media_Projects_Overview

= Upload Improvements =
==Upload API ==
* Based on the early work of Bryan Tong and others it adds the upload option to the api.
* We rewrite Special:Upload page to include use the new refactoring
* Added in token checks in both the SpecialUpload.php page so avoids DOS / xss copy-by-url JavaScript based cross site POST file submissions

== Copy by URL==
$wgAllowCopyUploads = false;
* http class rewrite includes a new http background download see: includes/HttpFunctions.php

* spins off a php process that calls: maintenance/http_session_download.php
* pushes updates to the session and gives the user a progress bar on http copy uploads from other server progress (using js2 upload interface) (if not using the js2 upload interface it does the request in-place but the download is limited to the php ini timeout time)

== Firefogg ==
* Firefogg enables resumable upload by chunks
* progress indicators and conditional invokation (js2 system)
* and of-course client side transcoding.

= Script Server =
$wgEnableScriptLoader = false;
* off by default if $wgEnableScriptLoader is turned on script files are grouped, gziped, cached etc.
for more info see: http://www.mediawiki.org/wiki/Extension:ScriptLoader

* Includes some early skin js include fixes (skin/script system still lots of love)
* Includes a "javascript class autoloader" this is packaged into mwEmbed so that the mwEmbed library can work in stand alone mode (while retaining localization and script serving) (one such application is the make page for firefogg.org : http://www.firefogg.org/make/index.html  )
* The file that contains the autojavascript loading classes is: js2/php/jsAutoloadLocalClasses.php
* One can use this auto class loading dependency system with extensions and add-ons but I need to better document that.

= js2 system  / mwEmbed=
$wgEnableJS2system = false

* includes initial rewrite towards more jquery based javascript code
* especially for the Special:Upload page.
* Also the edit page include support for the "add-media-wizard"
* includes dependency loader for javascript that optionally takes advantage of the script-loader
* remote embedding of javascript interfaces (like embedding video, or commons media searching)

* $wgDebugJavaScript = false; .. .this variable lets you always get "always fresh javascript". When used with the script-loader it does not minify the script-loader output.

= mwEmbed =
* Will commit a separate patch to oggHandler that conditionally outputs  <video tag> to use the new javascript video player.
** mv_embed player includes: play-head, volume control, remote embedding, oggz-chop support across plugins.
* add-media-wizard adds easy inserts of media to pages (with import)

== jQuery==
* we include a base install of jQuery, jQuery ui and some plugins.
* all the javascript classes are in the scriptloader so its easy to load any set of jquery ui components that you may need using the script-server. You get a callback so you can then execute js with dependencies loaded.

== other stuff ==
there is a bit more code in js2 that pertains to sequence editing, timed text display and basic image editing. We include a base import of pixastic-lib & pixastic-editor... will work with the pixastic developer to try and ensure upstream compatibility on our usage of the library for in-browser photo and sequence manipulation.
2009-07-14 23:52:14 +00:00
Roan Kattouw
f6fcd73591 Revert r53147 properly; was supposed to be reverted in r53167, but I wasn't fully awake at the time. 2009-07-14 08:44:58 +00:00
Roan Kattouw
562dfb5de4 Revert r53147, r53149 and r53163 ("Add API module for QueryPage-based special pages"): this has already been worked on more extensively and cleanly in the querypage-work branch, if you wanna work on this please finalize the implementation there rather than reinventing the wheel. 2009-07-13 12:40:19 +00:00
Bryan Tong Minh
977be5f40d * Added ancientpages, deadendpages and disambiguations to ApiQueryQuerypage
* Added information about disabledness and cache to result
2009-07-13 10:40:29 +00:00
Bryan Tong Minh
cb7471a46e (bug 14869) Allow access to QueryPage-based special pages via API
Only brokenredirects for now, until I find out which other special pages are suitable.
2009-07-12 21:51:47 +00:00
Bryan Tong Minh
eb7d060fd6 Refactored the querying code out of the display code, to allow a future API module for query pages. No user visible changes. 2009-07-12 21:16:58 +00:00
Siebrand Mazeland
30ea75c648 * replace deprecated makeBrokenLinkObj() by LinkHolderArray.php()
* replace deprecated makeKnownLink() by linkKnown()
* add FIXME where I was not able to.

Linking to r51559 for code review
2009-06-13 12:39:00 +00:00
Niklas Laxström
d3b61fea7c Escaping fixes 2009-05-22 09:35:48 +00:00
Siebrand Mazeland
547858b7fe Use link() instead of deprecated makeLinkObj() where possible. 2009-05-08 23:24:31 +00:00
Chad Horohoe
d59dd932e1 (bug 18151) Clean up duplicate code between Special:WantedPages, WantedFiles, WantedTemplates
* New WantedQueryPage class for all of these Wanted*s, moved some identical methods to it
* Removed sortDescending() because it was already defined as returning true @ QueryPage, no need to duplicate
2009-04-15 03:35:59 +00:00
Aaron Schulz
deaeee095a Fixed fatal from r49045 2009-03-30 23:13:34 +00:00
Roan Kattouw
8a4101d1cb Kill raw SQL in QueryPage::recache(). I can't find any code that actually calls recache(), though 2009-03-30 20:04:34 +00:00
Alexandre Emsenhuber
888f5b3592 (bug 14414) maintenance/updateSpecialPages.php no longer throws error with PostgreSQL:
* forced intval() for the "value" field in QueryPage::recache() since some pages select page_title for it, which is incompatible with "integer"
* changed Special:Unusedimages' query to return the UNIX timestamp rather than raw img_timestamp for the "value" field, the latter has the TS_POSTGRES format on PostgreSQL and is also incompatible with "integer", code taken from Special:Ancientpages
2009-02-21 17:30:59 +00:00
Niklas Laxström
e4f6c026a7 * Springle some parsemag to the sidebar and tagline per bug 16669 2008-12-19 08:54:51 +00:00
Andrew Garrett
6ef3fc4a2f Revert "Starter for a re-jig of hit counting (in a per-day table)."
That was supposed to be in a branch.
2008-11-19 12:05:33 +00:00
Andrew Garrett
1c2f4514f8 Starter for a re-jig of hit counting (in a per-day table).
Needs configurability, purty graphs, and some cleanup in the back-end.
2008-11-19 12:01:43 +00:00
Siebrand Mazeland
0a9af4a884 Consistent casing for addHTML() 2008-11-06 22:20:29 +00:00
Danny B
f6db98925c * A new special page to list wanted templates 2008-10-18 17:32:40 +00:00
Siebrand Mazeland
7f1b7554b9 * Add functionality of extension LinkSearch to core
* Update release notes for adding of Special:Log/newusers
2008-09-14 19:51:25 +00:00
X!
fe3e7524dc Add new special page Wantedfiles. 2008-09-11 22:30:27 +00:00
Greg Sabino Mullane
0236e8f144 querycache.value is an unsigned int with default of 0, so don't attempt to store an empty string. 2008-06-05 17:20:26 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Aaron Schulz
de7bcf1015 * Respect feed limits
* Decrappify WLH enough that it at least looks kind of tolerable
2008-05-16 21:34:46 +00:00
Siebrand Mazeland
79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aaron Schulz
a1be5bc79f Leave attribute variable 2008-04-13 21:01:06 +00:00
Aaron Schulz
d778ac6aa7 Make newpages uses Pager over rc_timestamp 2008-04-13 19:57:12 +00:00
Huji
206bbe7dc8 Introducing $wgFeed variable. Allows tuning sydication feeds off, when desired. 2008-02-22 12:33:51 +00:00
Tim Starling
377561cd1e * Introduced OutputPage::addWikiMsg() and OutputPage::wrapWikiMsg(), to make it easier to avoid double-parsing. Double-parsing introduces differences between the old and new parsers.
* Used the new functions in the relevant places throughout the core. Where this was not possible, used wfMsgNoTrans() to avoid double-parsing.
* Calling wfEscapeWikiText() on a title before passing it to a message is unnecessary and causes bugs. The best idea is to let the message do its own escaping. Removed wfEscapeWikiText() from the caller of addedwatchtext, removedwatchtext, deletedtext, protect-text, nosuchusershort and movepage-moved. Updated all message files to use <nowiki>$1</nowiki> where appropriate in these messages. 
* Removed unnecessary empty message handling from semiprotectedpagewarning
* Removed nonsense warning about the output of wfMsg() not being safe for inclusion in HTML. 
* Changed wfShellExec() to use passthru/ob_get_contents instead of exec(). This avoids corruption of whitespace in the response. 
* Added $wgValidateAllHtml feature, to optionally validate HTML on output. 
* Fixed missing newline in cascadeprotected in MessagesEn.php
* Belatedly updated addedwatchtext to take account of the new "monobook" skin. No unwatch link in the sidebar anymore.
2008-02-18 07:25:35 +00:00
Brion Vibber
0661128656 Dump obsolete pass-by-reference on QueryPage::preprocessResults() 2008-02-12 02:43:25 +00:00
Niklas Laxström
f7dd185155 * Inclusion of Special:Wantedpages now works again 2007-09-04 19:29:47 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Rob Church
5a143bcbb0 (bug 8869) Introduce Special:Uncategorizedtemplates [in lieu of a reporting mechanism that allows us to cache multiple results per namespace and offer filtering to the user] 2007-06-11 07:04:25 +00:00
Rob Church
2bbe34ff54 * (bug 10118) Introduce Special:Mostlinkedtemplates
* Change default text for "specialpage-empty"
2007-06-04 21:39:12 +00:00
River Tarnell
34c8811671 - need to include </div> in empty result case, otherwise page layout is screwed
- use a class instead of id, so it works with special page transclusion
2007-05-27 22:13:56 +00:00
Antoine Musso
94157f6021 * cleaner indenting for query pages
* enclose the content generated in a <div id="mw-spcontent"> (for javascript)
2007-05-27 08:22:37 +00:00
Nick Jenkins
b4d37577b9 Removing or commenting out unused variables or globals, and adding declarations for two arrays. 2007-05-08 09:09:46 +00:00
Nick Jenkins
f9619da3f0 Yet more doc tweaks:
* Add @addtogroup tags to various classes, to try and group conceptually-related classes together.
* Add brief descriptions to various Special pages, thanks to Phil Boswell.
* Moving some docs to be right above the classes they represent, so that they are picked up.
2007-04-20 08:55:14 +00:00
Ivan Lanin
d35ccbc6f1 * Fix object variable used for displaying "not-patrolled" CSS class on list
* Indonesian (id) localization updates
2007-04-20 04:06:06 +00:00
Rob Church
8485b649c6 Kill some trailing whitespace 2007-04-08 07:26:55 +00:00
Rob Church
874d1d6990 (bug 9508) Special page to list articles with the fewest revisions, based on http://bugzilla.wikimedia.org/attachment.cgi?id=3421&action=view with minor modification 2007-04-08 07:23:15 +00:00
Rob Church
e55a937093 * (bug 9472) Invalid XHTML on cached query pages
* Use CDATA comment stuff in OutputPage::addInlineScript() as opposed to <!-- -->
2007-04-01 16:10:50 +00:00
Rob Church
06278e5bcf Move PageQueryPage class into own file 2007-03-31 23:36:58 +00:00
Rob Church
8e8c887dce (bug 9046) Special page to list pages without language links 2007-03-31 22:54:30 +00:00