Commit graph

275 commits

Author SHA1 Message Date
Jens Frank
c938e3fc8f Useless with modern PHP. Users should update their PHP. Brion says I should remove it. 2006-03-27 19:59:19 +00:00
Brion Vibber
103be1dda1 * Further work on rev_deleted; changed to a bitfield with several data-hiding
options. Not yet ready for production use; Special:Revisiondelete is
  incomplete, and the flags are not preserved across page deletion/undeletion.
  To try it; add the 'deleterevision' permission to a privileged group.
Also split some functions from GlobalFunctions to XmlFunctions.php, added
some convenience functions for building form controls, some more Linker
conveniences for formatting various types of standard link clusters.
2006-03-16 19:04:25 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Tim Starling
12063aa443 fixed whitespace 2006-03-07 02:08:24 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Rob Church
1a5a8726a1 (bug 5150 and related) Fix missing ID attribute in HTML namespace selector 2006-03-03 07:27:38 +00:00
Tim Starling
e1ff7bf588 Maintain backwards-compatibility in $wgUrlProtocols, so that wikis don't get transformed into a sea of external links when upgrading from 1.5 to 1.6:
http://jan.moesen.nu/media/images/screenshots/2006/20060228-mediawiki-1.6a-fubar.png
2006-02-28 12:33:40 +00:00
Tim Starling
2fc4490049 Proper windows escaping in wfEscapeShellArg() 2006-02-06 23:50:45 +00:00
Tim Starling
df09b7b2cc make wfShellExec() work on windows a bit better 2006-02-06 05:14:58 +00:00
Domas Mituzas
4ab130b023 remove memcached polution ... ah, and namespace notices on the way 2006-01-30 15:40:46 +00:00
Magnus Manske
fa214f77d9 Namespace notice (fix for bug 4469) is back:
Namespace-specific notice to be displayed below site-notice. Edit messages like "MediaWiki:Namespacenotice-" plus namespace name, which is blank for main namespace, or like e.g. "User_talk".
2006-01-28 17:36:08 +00:00
Brion Vibber
c2ca497c2a * Include timestamp in wfDebugLog breakouts 2006-01-28 11:42:35 +00:00
Tim Starling
34912bff40 Maintenance script to find and remove links to a given domain (cleanupSpam.php) 2006-01-27 23:37:19 +00:00
Tim Starling
eb53cc0856 * Added externallinks table, to track links to arbitrary URLs
* Convert unnecessary URL escape codes in external links to their equivalent
  character before doing anything with them. This prevents certain kinds of
  spam filter evasion. (Parser.php only)
2006-01-26 13:29:14 +00:00
Tim Starling
df8f752a72 Fixed Special:Unlockdb, had been broken since 1.5beta1 2006-01-26 07:02:53 +00:00
Ævar Arnfjörð Bjarmason
ec2b295ba5 * wfGetSiteNotice() gets called on DB errors (wtf?) so depending on $wgUser
which depends on the database for this executing successfully is not a very
  good idea...
2006-01-22 12:38:13 +00:00
Brion Vibber
68f8fd1769 * (bug 4679) Work around buggy basename() function in PHP5, which breaks
uploads of files starting with multibyte characters on Linux.
  wfBaseName() doesn't suffer this bug, and understands backslash on
  both Unix and Windows.
2006-01-20 09:03:16 +00:00
Antoine Musso
711a54fa05 * use braces in if else if if if stuff (safer read).
* removing useless call ($sk never used in function)
2006-01-16 22:38:30 +00:00
Rob Church
5e75e987bf * Add cache-safe alternate sitenotice for anonymous users. (MediaWiki:Anonnotice
This is displayed instead of the regular sitenotice, if it exists. If not, the regular sitenotice shows. If that doesn't exist, the value of $wgSiteNotice is used, and if that's null, then nothing is shown.
2006-01-16 01:58:57 +00:00
Brion Vibber
cba74e1483 * Move PHP 5-friendly XHTML doctype hack to Sanitizer, use for sig checks.
Fixes use of named entities in sigs on PHP 5
2006-01-14 17:42:08 +00:00
Brion Vibber
8c63b503b1 some more die-with-proper-return-code 2006-01-14 08:04:38 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
33fb226abf * Add wfClone() wrapper since we're still using PHP 4 on some servers. 2006-01-13 20:13:58 +00:00
Brion Vibber
63d37a2e08 Revert namespacebanner feature:
* causes fatal error during database error reporting
* indirect keys won't show up in allmessages; check this for correctness and safety
* no release notes entry for new feature!
2006-01-11 00:09:42 +00:00
Magnus Manske
6b7ef22b7b Fix for bug 4469: Implement MediaWiki:<namespace>:Sitenotice
MediaWiki:Namespacebanner contains the "base name", to which the name of the namespace is appended, like "basename-namespace". By default the base name is also "Namespacebanner" to add confusion. In namespace names, spaces are replaced by "-" (due to some weird message handling bug).
So the namespace-specific notice messages loke like:
"Namespacebanner-" (main namespace)
"Namespacebanner-Talk" (Talk namespace)
"Namespacebanner-MediaWiki-talk" (for MediaWiki_talk)
2006-01-08 19:53:20 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Ævar Arnfjörð Bjarmason
d8e90514ab * Documentation: @private => @access private 2006-01-07 12:48:44 +00:00
Brion Vibber
41701080d2 * (bug 4453) fix for __TOC__ dollar-number breakage 2006-01-04 00:27:48 +00:00
Ævar Arnfjörð Bjarmason
7463dae36f * Formatting: -whitespace 2006-01-04 00:25:46 +00:00
Ævar Arnfjörð Bjarmason
fb2af1669d * ctype_* compatability functions 2006-01-03 02:59:05 +00:00
Ævar Arnfjörð Bjarmason
d74b06f8c3 * Two new functions, wfUsePHP() and wfUseMW() which work like "use VERSION" in
Perl for PHP and MediaWiki, respectively
2005-12-31 02:53:35 +00:00
Domas Mituzas
70c5b8cf42 close profiling on script exits instead of page flushing 2005-12-30 23:14:34 +00:00
Tim Starling
81217f55a0 * Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Domas Mituzas
d014919229 dirty sitenotice cache, will cache rendered sitenotice for 10 minutes, unless it's wikitext changes
does not deal with template or links changes...
2005-12-29 22:03:54 +00:00
Magnus Manske
c7e8a273da now displays system messages in their edit box even if they are not set in the database yet 2005-12-28 14:47:30 +00:00
Brion Vibber
6d7f0d100f * Fix raw sitenotice display on database error 2005-12-22 06:30:39 +00:00
Brion Vibber
3ba030bc63 * Use $wgOut->parse() in wfGetSiteNotice() instead of creating a new parser
instance. This allows use of extension hooks if required.
2005-12-17 06:26:27 +00:00
Ævar Arnfjörð Bjarmason
241b1b9b00 * Documentation: "Check where as the operating" => "Check if the operating system"
* Code formatting
* Make wfOpenElement() support attributes
* Changed variable name: $x => $protocols
2005-12-08 08:01:39 +00:00
Brion Vibber
9edc515834 * Use content-lang for sitenotice 2005-12-08 05:28:34 +00:00
Antoine Musso
2ca68a256d Clean up unused globals! 2005-12-04 18:27:59 +00:00
Ævar Arnfjörð Bjarmason
2f09ff388e * Make sure not to crash when the message cache isn't alive 2005-11-28 14:50:56 +00:00
Ævar Arnfjörð Bjarmason
248b02f6e6 * When wfMsg*NoTrans() was called the message cache transformation was
disabled permanently for the session, not just for that one message call
2005-11-28 01:13:05 +00:00
Ævar Arnfjörð Bjarmason
c847ba5e1e * Add wfMsgNoTrans() and wfMsgForContentNoTrans() to get untransformed messages 2005-11-26 23:59:55 +00:00
Brion Vibber
5536dcb1f7 * Fix ulimit parameters for wfShellExec when memory_limit is specified in 'm'
With memory_limit of '50M', it got automatically turned into '50' in a
numeric context, which ended up passing *zero* kilobytes for ulimit.
This would make nothing able to run on Linux, things would just segfault.
2005-11-26 20:17:43 +00:00
Tim Starling
1c93c62945 Bounded execution time and memory for image thumbnailing 2005-11-26 05:36:34 +00:00
Tim Starling
d8404c7bd7 wfShellExec fix, debug log tweak 2005-11-26 02:57:18 +00:00
Ævar Arnfjörð Bjarmason
0fec84c81c * Support named arguments to wfMsg* like wfMsg( 'msg', array( 'foo' => 'bar' ) ) 2005-11-26 01:13:37 +00:00
Tim Starling
deefc32fea Experimental ulimit script 2005-11-26 00:06:42 +00:00
Brion Vibber
ecf8aac97e * Run wikitext-escaping on plaintext sigs (no wiki markup, just name)
* Check for unbalanced HTML tags on raw sigs (markup allowed, but show
  a warning in prefs and use default sig if not balanced)
2005-11-15 00:38:39 +00:00