Commit graph

61 commits

Author SHA1 Message Date
Brion Vibber
51f738ea9a More unitialized variable cleanup && 'pure' register_globals cleanup...
Added wfDebugDieBacktrace() function to help in pinpointing problems by
showing a function call backtrace along with a friendly die message.
2004-03-08 02:50:04 +00:00
Brion Vibber
b59ce22943 Replace the random boolean parameters on Title::getURL() with a set of
practical, clear methods:
  Title::getLocalURL() - "/wiki/index.php/Foobar" or "/wiki/index.php?title=Foobar&action=edit"
  Title::getFullUrl() - ditto with $wgServer on the front
  Title::getInternalUrl() - ditto with $wgInternalServer on the front (for some squid-related functions)
  Title::escapeLocalUrl() - local URL escaped for HTML output
  Title::escapeFullUrl() - full URL escaped for HTML output

All take an optional query parameter.

Title::getURL(), wfFullUrl() and wfFullUrlE() are now officially
deprecated and will result in instant death. wfLocalUrl() and wfLocalUrlE()
will be killed shortly; they are still used in the language files.
2004-03-07 07:26:56 +00:00
Brion Vibber
4dac4d85c6 Add digit transformation function Language::formatNum() for Arabic and other
languages which need to use localized (decimal) digits. Sample implementation
for Arabic.
2004-03-06 03:03:14 +00:00
Tim Starling
840dee3ad4 * Fixed magic quotes in $_REQUEST, in Setup.php
* Converted many instances of globals from the query to $_REQUEST
* Renamed near-useless Title::getURL() to Title::getPartialURL()
* Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code
* In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting
* Moved body of Article::preSaveTransform to Parser.php
* Put lots of comments in Title.php
2004-03-06 01:49:16 +00:00
Mr. E23
6e1ab9c0fc Fixed bug causing early execution errors to occasionally be masked 2004-03-05 21:24:14 +00:00
Tim Starling
45297d6792 wfRecordUpload() using RecentChange instead of direct DB, which fixes a minor bug 2004-02-29 08:44:59 +00:00
Gabriel Wicke
1df646d3a4 enabled ports != 80 for purging, just add the :port in wgSquidServers 2004-02-26 20:08:45 +00:00
Mr. E23
3c799396d6 Replaced uses of microtime() with wfTime() where possible. 2004-02-18 19:12:55 +00:00
Mr. E23
4e89b41d15 Added function wfTime to get current time as a float 2004-02-18 19:06:22 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Jens Frank
9f4792d3ba Fix bug with md5 generation of archived images 2004-02-09 00:37:06 +00:00
Gabriel Wicke
a3e58ae5c8 increased tries to read from socket from 4 to 20 2004-02-04 14:25:37 +00:00
Gabriel Wicke
76cbec491f fixed the wfLoclaUrl hack committed yeterday by mistake to another hack... 2004-02-03 13:20:56 +00:00
Gabriel Wicke
16e86dacf5 cpu theft and lockups found 2004-02-03 00:36:18 +00:00
Jens Frank
d305622d9a Fixing issue with IE not showing thumbs with non-ASCII-chars in their name 2004-02-01 23:43:42 +00:00
Jens Frank
b3464402c0 Fix wfImagePath: removed invalid urlencode() 2004-02-01 12:21:26 +00:00
Gabriel Wicke
f12b89003e now for the real thing- previous submit was a small hack to make it work without /wiki/... Damn, i have to save the file first... 2004-01-31 02:08:36 +00:00
Gabriel Wicke
43ce1528b3 removed left-over microtime() statement 2004-01-31 01:58:30 +00:00
Gabriel Wicke
144cbe5bd6 Squid integration changes 2004-01-30 17:07:50 +00:00
Tim Starling
57cec6f4dc More hide/show links in RC 2004-01-30 12:47:19 +00:00
Jens Frank
58c8694cae Feature-Request #816659,#668443: No (next 50) link if there is no next page
Implemented for:
   PageHistory,
   QueryPage and all derived from it,
   SpecialContributions
2004-01-20 19:02:12 +00:00
Tim Starling
85e6528f38 setArticleRelated required in more places than I realised at first 2004-01-17 15:12:33 +00:00
Erik Moeller
99f6383f37 JeLuF's image resizing code 2004-01-12 00:55:01 +00:00
Mr. E23
beaae16295 Removed a global variable. Added PHP < 4.3 compatibility for wfAbruptExit(). 2004-01-11 23:50:52 +00:00
Tim Starling
a4c652b0ff object-oriented database connections 2004-01-10 16:44:31 +00:00
Tim Starling
7fd73cbe63 fixed a few minor bugs and misc. notices 2004-01-10 14:18:05 +00:00
Tim Starling
82c2a935ff Alteration of security fix to make it very slightly less ugly 2004-01-07 09:02:36 +00:00
Brion Vibber
712ee46ba4 change wfEscapeWikiText() to escape the pipe | character. This was breaking
{{MSGNW:foo}} inside a wiki-syntax table.
2003-12-22 04:14:33 +00:00
Mr. E23
77c8660ee8 Added <4.3.0 compatibility for wfAbruptExit() 2003-12-17 08:30:11 +00:00
Tim Starling
036ff960ce Improvements in MediaWiki namespace handling, enhanced rollback 2003-12-14 14:29:35 +00:00
Mr. E23
4f8b5eaaa5 removed tracing printout 2003-12-11 22:14:03 +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
ea5c70a473 Added wfAbruptExit() function, to replace exit() calls with. 2003-12-10 14:58:17 +00:00
Tim Starling
35cecc8014 Fixed wfMsg bug -- problems with "loading" message 2003-11-21 04:57:32 +00:00
Brion Vibber
d3c61d791d Security fix: include path 2003-11-17 03:00:18 +00:00
Brion Vibber
8609ef44c7 PHP version check on install/update; remove 4.0.x compatibility functions, as we've broken 4.0 compatibility elsewhere 2003-11-16 14:30:39 +00:00
Brion Vibber
d1c2cf108b Add compatibility file_get_contents; fix compat iconv 2003-11-15 14:47:31 +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
596f4b09ce Latest features and bug fixes imported from stable 2003-11-12 10:21:28 +00:00
Tim Starling
46787701ce Nov. branch merge. Various features backported from stable, various bug fixes. 2003-11-09 11:45:12 +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
d1f6bd3328 Made enhanced wfMsg() faster 2003-10-21 13:01:49 +00:00
Tim Starling
ef8c8d5f2b fixed profiling; fixed wfMsg() use of memcached; put block log in initialdata.sql 2003-10-20 13:39:40 +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
Tim Starling
a2bc5d8338 MediaWiki namespace 2003-09-21 13:10:10 +00:00
Tim Starling
436d389650 changing wfQuery to allow replication 2003-09-20 02:30:00 +00:00
Magnus Manske
2afd409ebb upload add-on 2003-09-17 13:48:08 +00:00
Tim Starling
3d042077f8 enhanced wfMsg: minor improvements 2003-08-30 07:12:38 +00:00
Brion Vibber
578e1dbf26 Update cache validation timestamp on uploads / re-uploads 2003-08-30 06:21:34 +00:00