Commit graph

240 commits

Author SHA1 Message Date
Arne Heizmann
69eaf5751b Fixes to the bold/italics rendering problems [Bug 40]
http://bugzilla.wikipedia.org/show_bug.cgi?id=40
2004-08-14 08:32:57 +00:00
Brion Vibber
41c8b7bf72 Antiglobalization!
* Remove some unused and some useless functions from GlobalSettings.php
* wfEscapeHTML() replaced with PHP built-in htmlspecialchars().
* Moved some functions into Parser.php and Image.php
2004-08-13 15:55:59 +00:00
Guillaume Blanchard
1c8f04ece2 MAX_INCLUDE_REPEAT 5 => 20
Fix non-breaking space before ';'
2004-08-13 14:15:21 +00:00
Antoine Musso
4054b8773c Fix source forge bug #1007149. Wrong plural when listing categories and subcategories. Added two new messages in language.php 2004-08-12 13:58:54 +00:00
Antoine Musso
6291a4774d implement a new magic word: PAGENAMEE wich return the escaped title. Implement sourceforge feature requests 999044 and 997771 2004-08-12 13:32:04 +00:00
Tim Starling
d2ac7399cc tweaking escaping of external links 2004-08-10 11:24:24 +00:00
Magnus Manske
7b0686a408 (Hopefully) fixing various template bugs once and for all! 2004-08-08 18:05:41 +00:00
Tim Starling
5d58e45c1a Fixing bug #584804, extra characters requested in $sep for external links. This includes the right parenthesis fix suggested by Brion. 2004-08-07 18:45:30 +00:00
Tim Starling
badf11ffe6 Rewrote external link handler, using preg_split(). Passes all external link test cases on [[m:Parser testing]]. Fixes some parts of bug #583234: fixes URL inside URL problem and incorrectly rejected character problem 2004-08-07 18:24:12 +00:00
Arne Heizmann
96206ce09b Bugfix: produce valid XHTML even if user entered invalid '' / ''' mark-up. 2004-08-07 12:37:20 +00:00
Arne Heizmann
2e76b8fa28 rm trailing white space 2004-08-07 12:35:59 +00:00
Tim Starling
ea050f787c comments and descriptive variable names 2004-08-07 08:54:52 +00:00
Tim Starling
d73935a5f0 New feature, nicer display of redirects. Removed special case for redirects from Parser.php, which probably would have caused problems anyway. Changed a few places to use NS_xxx constants instead of the old Namespace:: functions. 2004-08-07 03:50:46 +00:00
Arne Heizmann
99b447f83b Performance optimisation: Merge two for loops into one. 2004-08-06 21:13:30 +00:00
Arne Heizmann
11093c73a1 Somewhat less hacky fix to the French l''''homme''' problem. 2004-08-06 20:47:21 +00:00
Magnus Manske
406abe0b0a Adding option $fixLbug to fix bug 948549 2004-08-06 17:52:43 +00:00
Jens Frank
152dcb411d Category links are not part of mBodyText, so <!--LINK tags are not converted.
set postParseLinkColour to false to force "real" link. There must be a better way to do this.
2004-08-05 20:15:32 +00:00
Magnus Manske
a56f343767 This should fix bug 980557 2004-08-04 20:56:46 +00:00
Jens Frank
61fb81f125 Removed debug output 2004-08-04 20:04:54 +00:00
Magnus Manske
ef2acad514 fixing several bugs at once, or creating new ones? 2004-08-04 19:59:04 +00:00
Magnus Manske
5d88dfc609 fixing my redirect bug fix (hopefully) 2004-08-04 17:08:33 +00:00
Jens Frank
40d9911ee1 Allow indentation of tables using :{|
Bug #989788.
2004-08-04 16:37:48 +00:00
Brion Vibber
73a4662190 Move magic ISBN, RFC, and GEO links to between replaceExternalLinks and
replaceInternalLinks. This is a basic fix for the infamous bug
[ 708163 ] [[ISBN #]] doesn't work correctly

ISBN, RFC links accidentally put inside [[ ]] brackets will now come up
relatively straightforwardly, with extra brackets. This is much nicer
than a horror of HTML errors that there were before; does not solve
problem with embedded <a>-in-<a> tag if you put it in a link piped
text, but that's a smaller problem.

Someday a full tokenized parser will wish this problem away into the
cornfields.
2004-08-04 01:53:29 +00:00
Magnus Manske
10a7bdc143 category redirect bug fix 2004-08-03 19:50:37 +00:00
Arne Heizmann
d6b0fc1ab5 Allowing for piped links inside template variables; by Emmanuel Engelhart
http://mail.wikipedia.org/pipermail/wikitech-l/2004-July/011776.html ff.
2004-07-31 14:13:07 +00:00
Brion Vibber
a3e3155936 Fix fragments on interwiki links and in-wiki links with case sensitive option on.
* [ 991569 ] Interwiki Links to Sections Do Not Work
2004-07-29 04:48:42 +00:00
Brion Vibber
81911cace9 Use localized numerals for CURRENTMONTH, CURRENTDAY, CURRENTYEAR, NUMBEROFARTICLES 2004-07-28 21:20:49 +00:00
Brion Vibber
67833d481c $wgRawHtml option to enable <html>...</html> container for RAW UNCHECKED
UNPARSED html bits. Don't enable this except on trusted sites!
2004-07-24 22:59:44 +00:00
Arne Heizmann
a75b7d316f sp :) 2004-07-24 01:03:16 +00:00
Arne Heizmann
6697d32053 Prevent category stuff ("There are 0 articles in this category.") from appearing in
the middle of articles because it is appended when a {{macro}} is expanded.
2004-07-24 00:46:27 +00:00
Jens Frank
063befc4cc Changed template inclusion code to detect loops and to limit the text length.
Based on an algorithm proposed by Emmanuel Engelhardt in
http://mail.wikipedia.org/pipermail/wikitech-l/2004-July/011254.html
slightly modified.
2004-07-24 00:37:24 +00:00
Jens Frank
4c5f567db2 allow blank lines in preformatted text started by blanks. BUG #993991 2004-07-19 19:03:43 +00:00
Jens Frank
6b37aa9a04 New global config setting $wgMaxTocLevel: Maximum indent level of toc. 2004-07-19 05:15:50 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Magnus Manske
67bcaab800 GEO mode 2004-07-16 20:32:44 +00:00
Gabriel Wicke
90f6f42193 improved pre/list interaction, cleanup 2004-07-14 18:46:02 +00:00
Gabriel Wicke
c3a00f5a65 allow pre's in lists, report by rizzo and mhnoyes 2004-07-14 18:38:28 +00:00
Jens Frank
6606778166 move $this->initialiseVariables down to where the variables are used the first time. This removes one SQL query per page view if no variables are used on that page. 2004-07-13 06:42:55 +00:00
Arne Heizmann
460d5f9aa9 Use linktrail instead of na�ve \\S* 2004-07-13 00:01:33 +00:00
Jens Frank
ecd99db4ab use makeKnownLink istead of makeLink. A page pointing to another page must exist que definitionem 2004-07-12 23:00:08 +00:00
Arne Heizmann
92fded9b95 This fixes the issue that something like [http://url/ link]s (i.e. text directly following
the closing square bracket) would produce something ugly in printing:
  link (http://url/)s
Now it finishes the word first:
  links (http://url/)
The given example seems pointless, but in languages other than English this happens more
frequently.
2004-07-12 22:57:13 +00:00
Arne Heizmann
bc18a0867d - fix issue outlined by Emmanuel Engelhart <emmanuel@engelhart.org> on wikitech-l
- fix indentation
- remove commented-out code
2004-07-12 19:49:20 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Gabriel Wicke
944b872646 New magic word __TOC__ that inserts the toc at the place it is found
Implies __FORCETOC__
2004-06-29 23:59:30 +00:00
Guillaume Blanchard
af9ce48b3e add [;] to french space character list 2004-06-29 10:38:55 +00:00
Tim Starling
61819d059b Corrected spelling error 2004-06-19 06:48:02 +00:00
Antoine Musso
7936e29ba5 * doExponant() function. Convert ^^th^^ in <small><sup>th</sup></small>.
The function call is commented
2004-06-17 17:29:54 +00:00
Tim Starling
3545cddd9b oops, removed random speculation 2004-06-12 07:15:27 +00:00
Tim Starling
85ef7f8865 changed code formatting, changed parser hook calling convention so updating will require a simultaneous update of the extensions. Now use $wgParser->setHook() instead of Parser::setHook() 2004-06-12 06:15:09 +00:00
Jens Frank
21891fe83f Fix sorting of subcategories without a sortkey. Use Category name as sortkey, not the first letter of Category. See comment for details. 2004-06-10 22:32:04 +00:00