Commit graph

62 commits

Author SHA1 Message Date
Brion Vibber
2e6a6b3c88 Trim whitespace on TOC links 2003-12-22 08:03:21 +00:00
Brion Vibber
e70b344449 Fix for bug #859195: the string '0' evaluates to false in PHP, even when using the empty() function, which can break links in the form [[foo|0]] such that the pipe text is ignored and the link title shows as the text 2003-12-14 05:14:04 +00:00
Mr. E23
bdf73da2d2 The purpose of this modification is to ensure that every normal request
execution starts and ends in wiki.phtml, giving the code a somewhat
more predictable flow.

OutputPage.php:
* Added disable() method to Output class.
* Replaced exit() call in checkLastModified() with "return true" (thereby
  altering its contract quite severly).
* reportTime() now only returns elapsed time, code with side effects
  moved to logProfilingData() in GlobalFunctions.php.

GlobalFunctions.php:
* Added function logProfilingData() which does most of what
  OutputPage->reportTime() used to do.

Article.php:
* Replaced exit() in checkLastModified() with "return true" (thereby altering
  its contract quite severly).
* replaced implicit exit in calls to checkLastModified() and tryFileCache()
  with returns.

LogPage.php:
* replaced implicit exit() with return in call to checkLastModified()

SpecialRecentchanges.php:
* replaced implicit exit() with return in call to checkLastModified()

wiki.phtml:
* Single call to logProfilingData() at the end of the request.
2003-12-11 20:16:34 +00:00
Mr. E23
53fba653e0 Replaced calls to exit() with wfAbruptExit(). 2003-12-10 15:05:08 +00:00
Brion Vibber
03022828ce Only emit the javascript to set editbox focus when we're really editing 2003-12-10 10:30:14 +00:00
Brion Vibber
98e99ce5fb #855829; El's patch to reduce breakage of <nowiki>,<math>,<pre> tags where the placeholders are duplicated in other parsing steps 2003-12-08 04:28:10 +00:00
Tim Starling
8b85aafbf2 Date formatter into temp branch 2003-11-20 13:40:30 +00:00
Brion Vibber
e3a4c27c75 Finish removing HTTP_SERVER_VARS in favor of _SERVER; fix notifications for the paranoid 2003-11-18 02:39:38 +00:00
Brion Vibber
7ab8c692ce Bug 839664; use 'empty' to avoid notifications for people with insane PHP error reporting settings. Also commented out a section of code in setEncodings that was being run but the result thrown away 2003-11-15 23:06:59 +00:00
Brion Vibber
83b43d49ce Use wfMsg()'s parameters 2003-11-15 14:32:58 +00:00
Tim Starling
eee45843b0 misc. bug fixes 2003-11-15 07:14:05 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +00:00
Chris Seaton
265b7839d5 Heading numbers are no longer displayed if there is only the one header. Also tidied up some parts of the code and added comments. 2003-11-08 12:12:50 +00:00
Tim Starling
ee4c7f2f49 Various fixes, see the version of [[m:Development status]] before this commit for details 2003-11-02 13:57:24 +00:00
Tim Starling
0f6234916a Translation checker added (nl: fixed); more conditional inclusion; misc. tweaks 2003-10-25 08:01:33 +00:00
Tim Starling
b64fae6383 Optimisation 2003-10-22 23:56:49 +00:00
Tim Starling
d8cc830c4a block/unblock log; split off profiling into Profiling.php and broke it (turn it off for now) 2003-10-16 13:30:45 +00:00
Brion Vibber
9f9a988e06 Skip links with namespace but no title 2003-10-10 20:56:51 +00:00
Bogdan Stancescu
49c130124f Added per page support for inhibiting editsection links via the __NOEDITSECTION__ magic word: some pages are known to be rendered ugly with editsection links (e.g. when using tables) 2003-10-05 09:44:20 +00:00
Tim Starling
a2bc5d8338 MediaWiki namespace 2003-09-21 13:10:10 +00:00
Tim Starling
7057b4e609 wfQuery now takes three parameters -- one extra for DB replication purposes 2003-09-20 01:34:06 +00:00
Matthias Jordan
ce01f4f320 TOC has been displayed regardless of user setting "showtoc". Fixed. 2003-09-18 10:51:36 +00:00
Magnus Manske
78b6b4a740 tr with attributes, changed caption tag 2003-09-17 12:40:54 +00:00
Magnus Manske
0993a38a90 Improved table markup security fix 2003-09-17 08:38:14 +00:00
Magnus Manske
ddd0f144ac table markup dirty security hack 2003-09-17 08:20:16 +00:00
Magnus Manske
1abe77f8f0 table fix 2003-09-16 13:26:09 +00:00
Magnus Manske
4bc4d217f5 table markup with header 2003-09-16 08:07:34 +00:00
Magnus Manske
919e609961 table markup fix 2003-09-12 07:13:48 +00:00
Brion Vibber
b1b8b5597b Initial attempt at using Smarty templates based on Tarquin's Paddington and Montparnasse demo templates 2003-09-11 12:21:03 +00:00
Brion Vibber
10bfbe1aec View source in read-only message when db is locked 2003-09-09 05:46:22 +00:00
Magnus Manske
ed64504c35 table markup 2003-09-08 07:52:03 +00:00
Tim Starling
1412a6885c Undelete bug partially fixed; Sysop ability to block users; various code formatting changes 2003-08-31 14:30:24 +00:00
Tim Starling
684dba201e Internationalisation of "magic words" such as #redirect 2003-08-31 09:46:37 +00:00
Brion Vibber
93b5c48f35 Trying to cut these monster files to manageable size... moving math support functions from OutputPage.php into Math.php 2003-08-30 10:04:59 +00:00
Brion Vibber
494236ea14 Cache fixes for internet explorer: vary header, deal with odd last-modified for compressed pages 2003-08-20 07:45:18 +00:00
Magnus Manske
daca4342f0 Category fix 2003-08-05 11:51:05 +00:00
Brion Vibber
c6879704ab Move file cache functions into CacheManager class (in CacheManager.php)
and add support for showing the cached version of a page if unable to
contact the database.

Also add 'Vary: Accept-Encoding' to headers for every output, just to
make sure.
2003-08-02 10:13:27 +00:00
Erik Moeller
adcd2c34c2 Don't show "__NOTOC__" text when user has toc disabled 2003-07-29 01:11:09 +00:00
Erik Moeller
6b271ae5cb - don't check for edit conflict when posting comments (can always append)
- right click on article title instead of top [edit] link when rightclick
option is enabled
2003-07-28 03:57:40 +00:00
Erik Moeller
98c8698ddb 1) Stylesheet changes:
- smaller headlines in standard skin
   - slightly smaller font for menu links
   - headlines have thin gray underline
   - thinner borders
   - footer in blue box
2) Skin changes:
   - changed default color for non-article pages
   - removed "Special pages" dropdown -- takes space,
     causes display bugs and is hardly used
3) Preferences:
   - put all checkbox prefs in a table so they are
     properly aligned
4) Section editing:
   - new option for editing sections by right clicking
     titles (onContextMenu); works in Mozilla & IE
   - new functionality for appending text to pages, currently
     displayed only for Talk pages as "Post a comment"
     (summary field becomes comment subject)
2003-07-21 07:36:52 +00:00
Magnus Manske
00a8d5316d Added categroy feature, turned off by default 2003-07-11 07:02:22 +00:00
Arne Heizmann
025f82f993 New apostrophe handling 2003-07-11 02:11:08 +00:00
Brion Vibber
8ed0b1d6e1 cache tweaks 2003-07-10 04:55:41 +00:00
Brion Vibber
3a35c1742b Stubs for hebrew and arabic language files; support for 'dir=rtl' on html element 2003-07-08 20:17:36 +00:00
Tim Starling
cf58e51e10 Much improved ability to disable dynamic dates in LocalSettings 2003-07-06 02:48:06 +00:00
Tim Starling
68252e7566 Tarquin's interlanguage link hack 2003-07-05 01:12:22 +00:00
Brion Vibber
cd0a89520d Fixes missing cache-control and last-modified headers with file cached pages.
HOWEVER, the session cookie seems to override our cache control. May need to
mess with this to get things working smoothly.

Also, caching + gzip may be a difficult combination.
2003-07-03 10:18:07 +00:00
Erik Moeller
c80573d81a Some fixes to table generation, show table after intro 2003-07-02 22:49:20 +00:00
Brion Vibber
9d51f61661 Add zh-cn and zh-tw language prefixes in order to label simplified and traditional chinese; for now these both still point to zh.wikipedia.org, but are labeled differently in the interlanguage link list. Also, regexps expanded to better handle hypenated language codes 2003-07-02 07:29:54 +00:00
Brion Vibber
d7f6cb4ff1 Enhances special page links; allow some parameters to be passed via wikilinks to special pages to make it easier to cite things like backlinks, contribs, options for recentchanges, etc 2003-07-02 06:22:03 +00:00