Zheng Zhu
f8b206a31f
special conversion for displaying title
2004-10-19 18:03:58 +00:00
Wil Mahan
4bc5a37c98
Move replaceLinkHolders() from OutputPage to Parser, because
...
it needs to happen before unstripNoWiki() and before tidy.
This also makes the parser more self-contained, so there is
no need to create an OutputPage object for the parser
tester.
Call unstripNoWiki() before creating a Title object
for an internal link; this fixes <nowiki> inside of
a link target. Need to make sure this does not degrade
performance.
2004-10-15 17:39:10 +00:00
River Tarnell
c733ea5910
fix xss attack
2004-10-14 05:08:33 +00:00
Zheng Zhu
3285ea4627
performance tweak related to title conversion
2004-10-08 04:27:07 +00:00
Wil Mahan
446f11bafc
Move tidy call from Parser to OutputPage so that it happens
...
after link placeholder replacement.
2004-09-25 18:22:21 +00:00
Wil Mahan
4860983705
Another attempt at fixing bug 2. Call replaceInternalLinks() before
...
replaceExternalLinks(). Use placeholders for interwiki links, as with
other internal links, to avoid parsing them as external. Disallow
links to pages containing a URL protocol followed by a colon.
Unrelated: output a warning comment when a template loop is detected.
2004-09-24 18:29:01 +00:00
Zheng Zhu
2d244b91f7
Attempt to fix links not fixed in the wgLang->wgContLang transition
2004-09-24 18:24:01 +00:00
Zheng Zhu
f84493db51
First batch of files modified to switch wgLang to wgContLang.
2004-09-24 13:14:52 +00:00
Zheng Zhu
60c94987aa
sending the content language code as Content-language
2004-09-22 04:24:50 +00:00
Jens Frank
100316948f
Instead of storing entire link attributes in wikitext for
...
deleayed link colouring, store pointer to an entry in array wgLinkHolders. Fixes BUG#493 and should
be faster.
2004-09-20 23:02:08 +00:00
Antoine Musso
83bfa5a935
Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=502 . Implement allow quickbar suppression in PHPTal skins, error pages suppress quickbars
2004-09-17 16:31:38 +00:00
Antoine Musso
2831daf4bc
some comments / code foobar () { schemas
2004-09-17 15:24:43 +00:00
Domas Mituzas
840a5141ac
allow external clearing of mBodytext, without destroying OutputPage object,
...
required for refreshLinks memory-efficient operation
2004-09-13 07:44:27 +00:00
Tim Starling
ba6b4c048e
I had a fix for this bug sitting in my working copy for over a week without getting around to committing. I see someone else has fixed it for me, but I like my way better :-) Sure, it's still a special case, but it's less special.
2004-09-09 12:11:10 +00:00
Domas Mituzas
29af0f3625
lastmodified timestamps
2004-09-06 10:10:49 +00:00
Antoine Musso
a0d30b1e03
Use the new skin tree hierarchy
2004-09-05 03:25:58 +00:00
Antoine Musso
ba2afcd9fa
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema
2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97
Changing comments layout preparing for generated documentation with Phpdocumentor
2004-09-02 23:28:24 +00:00
Brion Vibber
82571fa72d
Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
...
and use it in a few places where user names, images, or messages are being
used to create titles.
2004-08-22 23:55:36 +00:00
Antoine Musso
3d60242fb5
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
2004-08-22 17:24:50 +00:00
Tim Starling
db350f2bf6
Replaced link holders with actual links before saving into the cache, thereby speeding up parser cache hits. Profiling confirms a marked decrease in cache hit service time
2004-08-21 14:56:07 +00:00
Brion Vibber
da501f63e1
Do final link replacement with preg_replace_callback instead of str_replace on giant arrays.
...
Speeds up this part on a Village Pump copy by a factor of 20 over the
previous explode() hack and by a factor of 200 over the original method.
2004-08-16 23:57:25 +00:00
Magnus Manske
b46fce110b
Dirty hack for time-consuming str_replace
2004-08-16 21:39:56 +00:00
Brion Vibber
a6c69e9ca3
* Add more profiling granularity to replaceLinkHolders
...
* Split a couple "?>" instances in string literals -- these hose some syntax highlighters
2004-08-16 19:06:03 +00:00
Jens Frank
2fc026728a
prevent crashing on [[{{FNORD}}]]. Doesn't return something beautiful, though.
2004-08-15 20:20:41 +00:00
Brion Vibber
8261be47dd
Remove obsolete searchhelppage link from dberrortext.
...
Search queries should never cause SQL errors! The new mysql4 code at least is fairly robust.
2004-08-15 09:47:57 +00:00
Tim Starling
5698c6bcc7
Allowed post-parse link cache to be used for update as well as page view. This involves changes to Article::showArticle() and maintenance/refreshLinks.inc. Fixed various bugs that I noticed along the way. Added an option to recover the old 1.3.x behaviour, for profiling and debugging.
2004-08-14 13:34:57 +00:00
Tim Starling
cd2e8170d2
Ahh, so that's what that does
2004-08-12 06:54:58 +00:00
Brion Vibber
62e98ad47c
Suppress some more warnings on separate execution of files. Shouldn't
...
be anything exploitable, it's just annoying.
2004-08-06 22:30:47 +00:00
Arne Heizmann
28346910c6
Since nobody commented on this, I assume all the changes are OK
...
(http://mail.wikipedia.org/pipermail/wikitech-l/2004-July/011789.html )
Use wfMsg's own replacement functionality instead of str_replace ( "$1", ... )
2004-08-01 01:57:26 +00:00
Tim Starling
2a2ef856f7
tidy-resistant placeholder
2004-07-24 10:55:35 +00:00
Tim Starling
1773cd1e76
* Introducing bit field for database parameters
...
** Database constructor calling sequence, and Database::newFromParams()
** Including flags in the server initialisation structs
** Support for setting appropriate flags from legacy globals in Setup.php
** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants
* Changes related to post-parse link colouring
** Turn the link cache back on when using it for updating the links table
** No longer need to call preFill() on page view
* Better synchronisation of slave servers
** Rearranged getConnection()
** System for beginning and committing transactions when multiple connections are open
** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort()
* Allowed reporting of database errors during deferred updates by moving them above output()
2004-07-24 07:24:04 +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
Julian Ostrow
fbdfda2a2f
Alters Skin::makeLinkObj() to bypass using linkcache
...
Adds function OutputPage::parseLinkHolders(), which works in conjunction with the modified Skin::makeLinkObj()
2004-07-18 03:23:11 +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
Tim Starling
4bc7a92c56
profiling operations which end in a redirect
2004-07-10 01:17:37 +00:00
Arne Heizmann
6deed7d83e
This commit implements Josh Cogliati's "info" feature (e.g.
...
http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia&action=info ), fixes the page headings
for protect/unprotect, and does a lot of whitespace changes (sorry about that). I've also
fixed confusing indentation somewhere.
2004-07-08 14:53:54 +00:00
Tim Starling
72adcbd659
Show category links in preview
2004-06-19 06:46:54 +00:00
Tim Starling
a7c1948324
Fixed bug causing the script to quietly exit halfway through output(), if run on Windows
2004-06-05 04:22:53 +00:00
Brion Vibber
0c7a11c91b
Fix for bug #966376 . If POSIX functions are unavailable due to running
...
on Windows or explicit disabling, use SERVER_NAME to provide a hostname.
This may be a virtual server name.
2004-06-04 17:51:09 +00:00
Gabriel Wicke
0d64e62140
global declaration
2004-06-04 11:17:38 +00:00
Tim Starling
e7ac88064a
don't load so much stuff on parser cache hit (experimental)
2004-06-04 10:40:44 +00:00
Tim Starling
f4e839cc2c
Server hostname in comment
2004-06-03 09:26:43 +00:00
Gabriel Wicke
0cb5b5e5a7
addLanguageLinks and setLanguageLinks
2004-06-01 18:29:31 +00:00
Jens Frank
3a9b95d4c1
Provide feedback to sysops that their edit triggered the spam filter. No feedback to anons, would someone miss the point.
2004-05-29 07:41:16 +00:00
Tim Starling
de13435a76
fixed database error handling
2004-05-23 05:32:20 +00:00
Gabriel Wicke
91c8c20ed4
we enable squid caching explicitly for pages that support it, mtime check didn't work anymore for some reason
2004-05-20 12:46:31 +00:00
Jens Frank
4a7596429c
Add different CardSets for rendering of preferences.
...
Make SkinPHPTal use the JavaScript based tabbed version, while others stay with the old fieldsets.
2004-05-17 23:18:37 +00:00
Gabriel Wicke
6af7c5ce7b
After a longer phone call Erik and me agreed on working on an equivalent feature most likely based on categories that interacts better with caching. More discussion on to follow.
...
Removed with Erik's agreement.
2004-05-13 14:17:44 +00:00
Erik Moeller
201af52713
restore section folding
2004-05-13 12:20:59 +00:00