Commit graph

48 commits

Author SHA1 Message Date
Antoine Musso
28ea816fba Implementing user levels management. This is only a very basic interface and several things need to be done! A tracking bug is at http://bugzilla.wikipedia.org/show_bug.cgi?id=767 2004-10-24 19:14:48 +00:00
Brion Vibber
332a0cf268 Back out kturner's old table restructure for now.
This will require downtiime on upgrade, so we're not going to do it until we have a better idea of the cost and can make all necessary changes at once to minimize it.
2004-09-26 19:49:44 +00:00
River Tarnell
705c7680fc remove old_namespace and old_title from old table. 2004-09-26 14:43:12 +00:00
Zheng Zhu
14052ee5e5 Second batch of files modified to replace selected wgLang with wgContLang 2004-09-24 16:24:43 +00:00
Jens Frank
de5516294c Some usability changes after feedback from taw:
Have diff link after hist link, so that the diff links form a column
Don't have different labels for diff links of top revisions vs old revisions
Have (top) mark at the end of the line
2004-09-14 19:47:29 +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
Jens Frank
0ffcd7b77e BUG#403 User page link in Special:Contributions subtitle fails [1.4]
Disable delayed link colouring for the link in the header.
2004-09-07 06:14:34 +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
Jens Frank
79303cd93a ENH#59 Provide a (diff) link in Special:Contributions
Does not look up the next old revision for every change but links to pseudo-revision 'prev'.
DifferenceEngine looks up the previous revision if user requests a specific diff.
2004-08-28 23:00:04 +00:00
Arne Heizmann
559c5b74ac remove superfluous require_once('SpecialValidate.php'); 2004-08-28 18:11:14 +00:00
Arne Heizmann
8a7b7cf797 make this less confusing 2004-08-28 17:38:57 +00:00
Brion Vibber
edfb762a71 Check for validation mode and load validation code if necessary before trying to use it. 2004-08-24 17:56:20 +00:00
Erik Moeller
67b3d708f8 adds '->' links to section before autogenerated section edit comments,
in recent changes, history, watchlist and contributions list. '->' is
defined in MediaWiki:sectionlink.

closes http://bugzilla.wikipedia.org/show_bug.cgi?id=45
2004-08-24 17:19:37 +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
Arne Heizmann
a197edc25d Currently, if you go to [[Special:Contributions/newbies]], underneath the page
title it will say "For".  This patch makes its say "for newbies".
2004-08-11 23:21:50 +00:00
Arne Heizmann
f90faac1b0 As suggested by xmlizer <mozer@netcourrier.com> on wikitech-l
http://mail.wikipedia.org/pipermail/wikitech-l/2004-August/012061.html
have the 'm' for "minor" and the 'N' for "new page" be surrounded by
<span class="minor"> and <span class="newpage"> respectively, and no
<strong>.
2004-08-11 18:03:43 +00:00
Brion Vibber
7feaa1e37e Gracefully fail on invalid title for target 2004-08-08 20:30:56 +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
Magnus Manske
ff74ef5681 Article validation code (number of user validations) 2004-07-31 15:14:55 +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
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
Brion Vibber
6c8ce97c13 Be a little more careful about escaping displayed usernames 2004-06-24 05:32:52 +00:00
Tim Starling
a7ca289aae Special:Contributions/newbies feature 2004-06-20 12:37:48 +00:00
Domas Mituzas
78ce4b9be0 old->"old" 2004-06-11 15:43:10 +00:00
Brion Vibber
0d8c8ffee1 XHTML fixes 2004-04-03 11:31:05 +00:00
Tim Starling
68967f0f00 use of $wgRequest 2004-04-01 12:53:01 +00:00
Erik Moeller
dbc5dc019d 1) section editing auto-summaries are now formatted as /* foo */
2) in RC, SpecialContributions and PageHistory, these are displayed using
   the CSS class "autocomment" (gray in the standard skin)
2004-03-24 01:49:46 +00:00
Erik Moeller
d61d3486f0 do not show diff link for new articles 2004-03-22 22:38:20 +00:00
Erik Moeller
71a2a5cd25 contributions list:
- added diff links for (top) edits
- added history links
- documented a function
2004-03-22 04:26:32 +00:00
Brion Vibber
8510acd5a4 Clean up initialized variables; fix upload error. 2004-03-20 08:41:33 +00:00
Mr. E23
8bbad38d4f Fixed 'call on non-object' error on Special:Contributions 2004-03-10 01:37:16 +00:00
Brion Vibber
014093acc4 More globals and uninitialized variables fixes. Added WebRequest ($wgRequest)
object to encapsulate the handling of get/post variables:

The following grab something out of $_REQUEST. The first parameter is the
variable name and is required. The second is an optional default value:

  $wgRequest->getVal() - any type, returns NULL if no default given
  $wgRequest->getInt() - forced integer, 0 default
  $wgRequest->getText() - runs through $wgLang->recodeInput()
  $wgRequest->getBool() - return true/false
  $wgRequest->getCheck() - returns true if the var is set, even if to ""

$wgRequest strips slashes at initialization if necessary.

Also in this fine object:
  $wgRequest->wasPosted() - returns false if this wasn't a real form post,
    so we can protect against faked submissions in get urls.

There's still plenty of work to do, not everything uses the new functions
yet. To test the strict mode, do define('DEBUG_GLOBALS', 1);
2004-03-08 09:09:35 +00:00
Brion Vibber
04cb91dca9 Fix for 903572: mark the user page backlink as existing/nonexisting 2004-02-27 03:34:47 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +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
ed14647e9d rollback enhancement 2003-12-14 14:28:08 +00:00
Brion Vibber
9d3a23019d Fix old minor edits typo 2003-12-05 22:04:27 +00:00
Brion Vibber
1882da74f6 Whitespace and paranoia 2003-11-30 01:33:58 +00:00
Evan Prodromou
a3d16adadd Reduced the scope of the hideminor user preference to just recent
changes (bug #845036). User contributions and related changes now
ignore this preference.

Also, fixed a problem where the show/hide minor edits link wasn't
appearing on recent changes and related changes. Made sure that the
param gets passed through with all the links.

Made sure that user contributions also had a show/hide minor edits
thing, and that minor edits are flagged with the M (or whatever) in
user contributions.
2003-11-29 18:39:04 +00:00
Brion Vibber
980c966857 contribs talk link; RFE 845599 2003-11-20 06:57:00 +00:00
Brion Vibber
def0193f31 Use wfMsg()'s parameters 2003-11-15 14:11:30 +00:00
Tim Starling
07ab99c698 Merging latest features from stable 2003-11-14 09:13:23 +00:00
Tim Starling
7057b4e609 wfQuery now takes three parameters -- one extra for DB replication purposes 2003-09-20 01:34:06 +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
Brion Vibber
efca89ebbe Refactor some common code for offsets/limits; some preliminary stuff for upload license notes and mysql4 fulltext support (not ready yet) 2003-06-03 08:44:50 +00:00
Brion Vibber
21a6c8751f Fix rollback to avoid race conditions with multiple people trying to revert after each other 2003-05-25 07:09:23 +00:00
Lee Daniel Crocker
d82c14fb4f Initial revision 2003-04-14 23:10:40 +00:00