Commit graph

168 commits

Author SHA1 Message Date
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
Gabriel Wicke
df08e4792a removed section folding 2004-05-13 11:54:19 +00:00
Erik Moeller
472272dc61 New feature:
Automatic or manual collapsing and expanding of long pages.
Pages can be collapsed automatically according to a size threshold
set in the user preferences. Pages can be collapsed manually by clicking
the "Collapse" link in the TOC.

When a page is collapsed, only the intro & TOC are displayed. The
individual TOC lines link to section views, which can be individually edited
(classic section editing).

Section editing/viewing behavior has also been improved. When a section
with subsections is viewed or edited, all subsections are also loaded.

Known issues:
- After saving a section, we return to the full article view
rather than the section view, even if we previously were in section view
mode.
- Should work with Standard and Monobook, not tested with Cologne Blue yet.
- In Monobook, no backlink to the mother article is shown during section
viewing (Gabriel, can you fix that?)
2004-05-12 13:26:36 +00:00
Tim Starling
8f22cb45b1 include_once -> require_once 2004-05-07 13:43:10 +00:00
Brion Vibber
15ae966951 View source fixes:
* Show textarea with noarticletext msg if the page is empty
* Use wikitext for the readonly message text
* XHTML fixes
2004-04-30 07:18:38 +00:00
Gabriel Wicke
b19e8da69f removed tawrapper 2004-04-29 12:17:33 +00:00
Gabriel Wicke
44bb42ae06 some IE6 textarea tweaks 2004-04-29 10:21:32 +00:00
Brion Vibber
0ffaed11ff Add atom feed <link> when syndication is on.
Fix language marker on Atom feed head element.
Comment out empty dead fields in <author> in atom output.
2004-04-28 06:14:49 +00:00
Gabriel Wicke
b701ecbc2c * use images from style dir
* wgStyleSheetPath -> wgStylePath, wgStyleSheetPath references wgStylePath for backwards compatibility
2004-04-27 12:18:48 +00:00
Brion Vibber
1e3a9f9580 Use the set page title and HTML title in MonoBook skin, which was ignoring
them. Moved the action name appending into Output to work with all skins.
2004-04-25 00:32:24 +00:00
Gabriel Wicke
896ebbf5bd meta tag fixes 2004-04-15 12:27:31 +00:00
Brion Vibber
cffefe592a Fix notice in view source 2004-04-12 04:10:58 +00:00
Brion Vibber
8172d54c36 Skin updates:
* Add 'pagetitle' message to customize the HTML page title format (eg, "$1 - Wikipedia Encyclopedia")
* Some XHTML fixes to Nostalgia skin, prefs
* Removing the unfinished Smarty skins, renamed Standard to Classic
* Remove "gnunote" message in favor of general "copyright" msg, which is filled with the link & name in $wgRightsPage/$wgRightsURL and $wgRightsText
* Support a copyright-related icon as $wgRightsIcon (includes sample gnu-fdl.png)
* Show "Powered by MediaWiki" icon in footer (poweredby_mediawiki_88x31.png by Dan Carlson)
2004-04-11 01:25:00 +00:00
Brion Vibber
b5946f6ee9 Cleanup on Metadata (indentation, escaping of output). Put title attributes
on the Creative Commons and Dublin Core links so they can be identified by
humans in Mozilla's navigation bar. Add a <link rel='copyright'> as well if
$wgRightsPage or $wgRightsUrl is set. Fix metadata links for MonoBook.
Disable Smarty skins.
2004-04-10 11:19:33 +00:00
Brion Vibber
ce3e4422fd Fix HTML to html for validator 2004-04-09 10:15:08 +00:00
Brion Vibber
3746e6806c Include the meta-robots, meta-keywords, and link-RSS tags, and the set MIME
type, in MonoBook output.
2004-04-09 04:53:52 +00:00
Brion Vibber
fe5ff59ad6 XHTML fixes. 2004-04-09 01:37:41 +00:00
Brion Vibber
33821336ba Whitespace & coding standards adjustments to Evan's last commits.
Metadata.php seems to be missing, so the new code doesn't work yet.
2004-04-04 22:33:11 +00:00
Evan Prodromou
22f8c4ce37 Added code to implement Dublin Core and Creative Commons RDF metadata.
If these features are turned on (with global flags), a metadata link tag is
provided to the appropriate action ('dublincore' or 'creativecommons'). When
the wiki script receives these actions, it creates RDF files on the fly.

Also includes two valuable general functions: one to show an HTTP error
(used when the flags are turned off), and one to do content negotiation
(used to determine the MIME type for RDF files).

A helper function is also added to page output to display metadata links.
2004-04-04 21:58:05 +00:00
Brion Vibber
465f9ba5c2 Fix login/logout under XHTML 2004-04-03 10:59:26 +00:00
Brion Vibber
3d2a067e8c HTML tweaks inching towards XHTML-friendly output. To test:
$wgMimeType = "text/xml";
	$wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
	$wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";

Mozilla will spit out angry erorrs at all the well-formedness errors.
2004-04-03 10:01:08 +00:00
Tim Starling
867d40cab7 extra $returnto parameter in returnToMain() 2004-04-01 12:44:54 +00:00