Commit graph

4605 commits

Author SHA1 Message Date
Bryan Tong Minh
e94bc9516d (bug 19528) Added XSLT parameter to API queries in format=xml 2009-07-13 21:37:49 +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
Alexandre Emsenhuber
a7a1bc6059 RELEASE-NOTES entry for r53159 2009-07-13 09:59:04 +00:00
Aryeh Gregor
8285a9efad Remove redundant RELEASE-NOTES line
It's already stated that the <a> element has been removed entirely, so
there's no need to say that its name attribute has been removed.
2009-07-13 00:03:08 +00:00
Remember the dot
a70213071d Removed repetition of URIs in the title attributes (tooltips) of external links. Web browsers typically display the target URIs of links in the status bar, making repeating the URIs in tooltips redundant. Some browsers, like Opera, can be configured to display the URIs in tooltips instead of the status bar without the web page having to supply title attributes at all.
As part of this process, I refactored some of Linker.php and removed an unused parameter from getExternalLinkAttributes.
2009-07-12 23:32:16 +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
Aryeh Gregor
ed6de78dce Do not load old CSS fixes for new browsers
It's bad form to load a fix for "version X and later".  That means that
if the browser vendor fixes the underlying bug, they'll be served
incorrect markup and break.  On the other hand, if you check for just
"version X", then if they fix the bug they'll be fine, but if they
*don't* fix the bug they'll break, which is as it should be.  :)

Specifically, I disabled loading RTL fixes for Opera 9.6: my testing
shows that they worsen display, don't improve it.  All other fixes were
already not being loaded for browsers later than they should have been.
(Other than the five-year-old KHTML fix I removed outright in r53141,
which was loading for modern-day Safari and Chrome despite the
underlying bug very possibly having been fixed before WebKit even
existed . . .)

While I was at it, I made the variable names a bit saner.  I kept the
old weird ones (none are clear on which versions they include) for
backward compatibility in case scripts were relying on them.  Except
is_ff2_, which was so atrociously named that I had to put it out of its
misery.  For the others, I added new xxx_bugs variables to make it clear
that's all they were tracking.
2009-07-12 18:52:32 +00:00
Aryeh Gregor
e50b1d1663 Remove KHTMLFixes.css
This was added more than five years ago, in r3532.  It was being loaded
for WebKit as well as KHTML, and I could notice no difference in either
Chrome or Konqueror whether it was loaded or not.  It was responsible
for causing display errors with an HTML 5 doctype in WebKit.
2009-07-12 18:36:18 +00:00
Aryeh Gregor
81c5188e1b Turn off $wgHtml5 by default
I discovered that the HTML 5 doctype does in fact trigger standards
mode in all major browsers . . . but the old XHTML 1.0 Transitional
doctype we were using did *not*.  It triggers "almost standards mode" in
some browsers.  The difference is causing some rendering issues that
will have to block deployment for the moment.

See r53034, r53035, r53136.
2009-07-12 17:55:18 +00:00
Bryan Tong Minh
31d9947618 (bug 18533) Add readonly reason to readonly exception 2009-07-12 12:38:03 +00:00
Bryan Tong Minh
b17adbc880 (bug 17809) Add number of users in user groups to meta=siteinfo 2009-07-12 12:10:27 +00:00
Tim Starling
e373706cc6 Added $wgShowArchiveThumbnails, may be useful for file store backend load reduction. 2009-07-12 05:37:12 +00:00
Victor Vasiliev
9bc1e60cab Add function-like tag hooks. They are tags, which content is not preprocessed. Those hooks has access to PPFrame and are parsed on preprocessing stage. They might be useful for built-in programming languages. 2009-07-11 13:03:35 +00:00
Domas Mituzas
f7f573c3d0 Fix Bug#19637 - self-referencing externals will be by default filtered out 2009-07-11 08:04:31 +00:00
Remember the dot
ab67074a92 Updated RELEASE-NOTES for r52963 and r53033 2009-07-11 05:00:19 +00:00
Raimond Spekking
e431164728 * (bug 19630) Add linktrail to Turkmen 2009-07-10 10:38:43 +00:00
Aryeh Gregor
8468e399ee RELEASE-NOTES for r53034 2009-07-10 04:24:31 +00:00
Andrew Garrett
95500e00dd Release notes updates for r52983 2009-07-09 15:19:05 +00:00
Chad Horohoe
20eada1b11 (bug 19602) PubMed Magic links use outdated URL pattern 2009-07-09 00:28:01 +00:00
Tim Starling
1353a8ba29 Implemented the PoolCounter feature and did some general refactoring in the areas that it touched.
* Renamed Article::outputFromWikitext() to Article::getOutputFromWikitext()
* Factored out cascade protection updates
* Removed recently-added Article::tryParserCache(): misnamed, can be done in one line of code in the caller. Deprecated OutputPage::tryParserCache().
* Made some functions public instead of protected when they could be useful from hooks.
* In ParserCache, removed PHP 4-style ampersands

In Article::view():
* Factored out robot policy logic, "redirected from" header, patrol footer, diff page, revdelete header, CSS/JS formatting, footer, namespace header, missing article error
* Removed some variables, renamed some others, fixed incorrect use of empty()
* Used the refactored footer section to do a couple of early returns and unindent a massive if(!$outputDone) block
* Removed fantasy interpretation of $this->getContent()===false in comment
* Don't try the parser cache when ArticleViewHeader specified $outputDone=true
* Move timing hack to getOutputFromWikitext()
* Stop using $wgOut->parserOptions() with save/restore nonsense every time you want to change something in it. This is meant to be OOP.
* Don't overwrite the article text with an error message and then pretend to write it to the cache, that's confusing
2009-07-08 08:12:35 +00:00
Roan Kattouw
a248a1dba7 API: Add snippet field to list=search output 2009-07-07 20:17:54 +00:00
Shinjiman
ec1ee5e646 * (bug 14611) Added support showing the version of the web server which it is currently using. 2009-07-06 12:08:42 +00:00
Niklas Laxström
103e520974 * (bug 19442) Show/hide options on watchlist only work once
* Regression is probably since r51572
2009-07-05 09:11:09 +00:00
Chad Horohoe
c27ffd34fa (bug 19468) $wgEnotifWatchlist disabled, but option available on preferences 2009-07-04 01:46:41 +00:00
Chad Horohoe
a1df5a8aa2 (bug 19509) can't upload to file called '0'. Patch by Lee Worden. 2009-07-04 01:37:31 +00:00
Chad Horohoe
7003558057 (bug 18394) img_auth.php now respects userCan 2009-07-03 20:06:01 +00:00
Tim Starling
1f79ae389d * Re-added $wgMessageCache->addMessages(), there are still some extensions (in and out of subversion) that rely on it. Call wfDeprecated().
* Made wfDeprecated() issue a notice only once for each function name instead of every time the function is called.
* Added exceptions for malformed keys input to $wgMessageCache->get(), per CR comments on r52503
* Fixed notice from MWException::useMessageCache()
2009-07-03 06:19:39 +00:00
Alexandre Emsenhuber
290187a993 (bug 19390) Omit the "printable version" link on the printable version to have links to &printable=yes&printable=yes... 2009-07-02 09:27:33 +00:00
Chad Horohoe
0f912d826c (bug 11242) Check for MySQL storage engines during installation doesn't check whether engine is actually available. Patch by Jan Reininghaus. 2009-07-02 01:00:22 +00:00
Siebrand Mazeland
7589af2a50 (bug 19441) Updated date formatting for Lithuanian 2009-07-01 06:23:30 +00:00
Chad Horohoe
e78e254434 (bug 19423) The initial file description page uses caption in the user's language instead of content language 2009-07-01 00:52:22 +00:00
Raimond Spekking
526a29459d * (bug 19450) Use formatNum for "Number of edits" in Special:Preferences 2009-06-30 19:06:34 +00:00
Shinjiman
b77cdc86c9 * (bug 14611) Added support showing the version of the Math rendering engine. 2009-06-28 18:42:55 +00:00
Tim Starling
23cfebd3d2 * Introduced a new system for localisation caching. The system is based around fast fetches of individual messages, minimising memory overhead and startup time in the typical case. It handles both core messages (formerly in Language.php) and extension messages (formerly in MessageCache.php). Profiling indicates a significant win for average throughput.
* The serialized message cache, which would have been redundant, has been removed. Similar performance characteristics can be achieved with $wgLocalisationCacheConf['manualRecache'] = true;
* Added a maintenance script rebuildLocalisationCache.php for offline rebuilding of the localisation cache.
* Extension i18n files can now contain any of the variables which can be set in Messages*.php. It is possible, and recommended, to use this feature instead of the hooks for special page aliases and magic words. 
* $wgExtensionAliasesFiles, LanguageGetMagic and LanguageGetSpecialPageAliases are retained for backwards compatibility. $wgMessageCache->addMessages() and related functions have been removed. wfLoadExtensionMessages() is a no-op and can continue to be called for b/c. 
* Introduced $wgCacheDirectory as a default location for the various local caches that have accumulated. Suggested $IP/cache as a good place for it in the default LocalSettings.php and created this directory with a deny-all .htaccess.
* Patched Exception.php to avoid using the message cache when an exception is thrown from within LocalisationCache, since this tends to fail horribly.
* Removed Language::getLocalisationArray(), Language::loadLocalisation(), Language::load()
* Fixed FileDependency::__sleep()
* In Cdb.php, fixed newlines in debug messages

In MessageCache::get(): 
* Replaced calls to $wgContLang capitalisation functions with plain PHP functions, reducing the typical case from 99us to 93us. Message cache keys are already documented as being restricted to ASCII.
* Implemented a more efficient way to filter out bogus language codes, reducing the "foo/en" case from 430us to 101us
* Optimised wfRunHooks() in the typical do-nothing case, from ~30us to ~3us. This reduced MessageCache::get() typical case time from 93us to 38us.
* Removed hook MessageNotInMwNs to save an extra 3us per cache hit. Reimplemented the only user (LocalisationUpdate) using the new hook LocalisationCacheRecache.
2009-06-28 07:11:43 +00:00
Shinjiman
c0fc14089d * (bug 14611) Added support showing the version of the diff/diff3 engine. 2009-06-27 10:40:15 +00:00
Shinjiman
f18a9f081a * (bug 14611) Added support showing the version of the image thumbnailing engine. 2009-06-26 21:58:34 +00:00
Roan Kattouw
4a71b9a810 Revert r52410 (Put the [edit] link after the section header instead of before, and don't right-float it anymore) for now because of unresolved issues 2009-06-25 21:10:10 +00:00
Roan Kattouw
9fbe8ba6af (bug 11270) Put the [edit] link after the section header instead of before, and don't right-float it anymore 2009-06-25 20:00:56 +00:00
Roan Kattouw
82022f21bc Core changes for NavigableTOC extension:
* Always generate the section tree, even when we're not generating a TOC
* Add Parser::mergeSectionTrees() to merge two section trees into one
* Add Linker::generateTOC() to generate the HTML for a TOC from a section tree, and add the section anchor to the section tree to facilitate this. This adds the ability to generate TOCs in extensions; haven't converted Parser.php to use it (yet?). As a side effect, this fixes API bug 18720
2009-06-25 11:05:22 +00:00
Brion Vibber
1c9773bd01 Revert r52336 "Merge maintenance-work branch:"
Seems to have broken a bunch of stuff. Don't commit giant non-critical changes that break Setup.php and all maint scripts. Thanks!
2009-06-24 02:49:24 +00:00
Brion Vibber
ceedb37941 * (bug 8445) Multiple-character search terms are now handled properly for Chinese
Big fixup for Chinese word breaks and variant conversions in the MySQL search backend...
- removed redunant variant terms for Chinese, which forces all search indexing to canonical zh-hans
- added parens to properly group variants for languages such as Serbian which do need them at search time
- added quotes to properly group multi-word terms coming out of stripForSearch, as for Chinese where we segment up the characters. This is based on Language::hasWordBreaks() check.
- also cleaned up LanguageZh_hans::stripForSearch() to just do segmentation and pass on the Unicode stripping to the base Language implementation, avoiding scary code duplication. Segmentation was already pulled up to LanguageZh, but was being run again at the second level. :P
- made a fix to Chinese word segmentation to handle the case where a Han character is followed by a Latin char or numeral; a space is now added after as well. Spaces are then normalized for prettiness.
2009-06-24 02:27:51 +00:00
Chad Horohoe
59b60fc311 Merge maintenance-work branch:
* (bug 16322) Allow maint scripts to accept DB user/pass over input or params if no AdminSettings.php
* (bug 18768) Remove AdminSettings.php from MediaWiki core
* (bug 19157) createAndPromote error on bad password
* (bug 14201) Create AdminSettings.php during wiki installation, in the same way as LocalSettings.php
* Introduce new Maintenance class framework and port a good number of scripts over; the ones that are left are a little more complicated. Read the docs.
* Not deleting "unused" files yet, don't want to break everything at once :)
2009-06-24 02:02:37 +00:00
Brion Vibber
5814cf7e3d Reverting r51209 -- change to German number formatting per bug 18957.
Apparently there is wild disagreement on what the proper formatting is; since no one complained in the previous 8 years I'm returning it to the status quo.
2009-06-23 01:37:00 +00:00
Roan Kattouw
7c199a872b (bug 19323) Calls to recursiveTagParse() overwrite ParserOptions::$mSections, causing the real section tree to be overwritten in some cases 2009-06-21 12:52:24 +00:00
Roan Kattouw
fea99015df API: (bug 19313) action=rollback returns wrong revid on master/slave setups 2009-06-21 09:49:52 +00:00
Roan Kattouw
5097164dce Add 'index', 'fromtitle', and 'byteoffset' fields to ParserOutput::getSections(). This makes these fields available through the API with action=parse&prop=sections . Also, the byte offset will be needed by the new NavigableTOC extension. 2009-06-20 18:25:30 +00:00
Tim Starling
d93ea4874e Added PHP port of CDB, with abstraction layer. Tested for correctness with a differential fuzz tester, not yet benchmarked. The idea is to open up new applications for CDB, and benefit both shell and shared hosting users.
Ported existing uses of CDB to the new abstraction layer.
2009-06-20 15:59:56 +00:00
Ryan Schmidt
3acae9fff5 * Remove "shortcut" in Title::userCanRead, it prevents $wgRevokePermissions and extensions not using the userCan hook from restricting read access on the wiki if anon reading is allowed. 2009-06-20 14:37:42 +00:00
Roan Kattouw
a7f355adbb API: Return HTTP 503 status code on maxlag error, like index.php does 2009-06-20 08:10:30 +00:00
Niklas Laxström
35dff87821 Reimplement r49941 as an overridable method, as suggested by Tim (hiding navigation bar when all results are shown) 2009-06-20 06:41:59 +00:00