Commit graph

499 commits

Author SHA1 Message Date
Brion Vibber
aed4a04076 Clean up e-mail authentication code.
* Add Special:Confirmemail unlisted page for requesting confirmation emails and as the destination
* There is now a confirmation token separate from the login password, which is cleaner and hopefully a lot less confusing.
* Confirmation token expires after 7 days
* Added support functions for nullable timestamp columns: wfTimestampOrNull and Database::timestampOrNull
* userMailer now returns WikiError objects
* Added convenience functions to User for email management, consolidated some checks

There are changes to the user table, so run update.php
2005-04-25 18:38:43 +00:00
Brion Vibber
5a4abfcfc3 Move page tweaks:
* Handle attempt to move over self with a particular error message.
* Handle attempt to move page to invalid namespace or interwiki with a
particular error message.
* Don't offer to delete the target page if it's a self-move or illegal move!
2005-04-25 09:25:06 +00:00
Tim Starling
ca2a1e3239 Special:DoubleRedirects no longer returns false positives 2005-04-24 05:11:54 +00:00
Ævar Arnfjörð Bjarmason
4191c818c6 * Adding a new message 'exifdata', and translating it as 'Metadata'. 2005-04-21 20:59:34 +00:00
Ævar Arnfjörð Bjarmason
824ba09f8b * Quickbar settings => Quickbar 2005-04-20 07:20:31 +00:00
Tim Starling
77811c385f Lessons learnt from installing MediaWiki with safe_mode, especially support for uploads in such an environment. 2005-04-18 14:37:43 +00:00
Tim Starling
8c8ef55be5 * When an image is changed, invalidate pages that use it.
* Introduced image "broken links" allowing the user to quickly upload an image with that name
* "Upload a new version of this image" link from the image description page
2005-04-17 08:30:15 +00:00
Tim Starling
6eb85b88a8 Feature: user can specify upload destination name, separately from source name. JavaScript fills in the default destination, a blank destination also uses the default for the convenience of non-JS users. Also fixed a bug caused by the stat cache. 2005-04-16 17:17:18 +00:00
Zheng Zhu
84dc65a6ad Code refactoring for the language conversion system:
- Moved general conversion code from LanguageZh.php to LanguageConverter.php (new file);
- Add fake LanguageConverter object to the main language object. Languages that need real conversion functionality should implement their own converter object derived from LanguageConverter;
- As an example, LanguageZh.php now implements the conversion through the converter object.
2005-04-15 14:12:39 +00:00
Ævar Arnfjörð Bjarmason
013cfdb7e9 * Removing the MW_DATE_USER_FORMAT define.
* msg:tog-usenewrc: not for all browsers => JavaScript
* Unbolded email_notification_infotext
* Fixed dateFormat() and date()
* Removed rfc1123() (obsolete since fsckknowswhen, handled by wfTimestamp now)
* Added an argument to formatNum() in order to instruct it not to format years.
* Documented
2005-04-13 08:37:03 +00:00
Ævar Arnfjörð Bjarmason
74f8ef5ceb * Adding a new function to format numbers (commafy) and using it for formatNum
by default, this means that everyone that doesn't have a formatNum function
  will see the en_* format but those that do will continue to see what they
  already do.
2005-04-12 23:21:59 +00:00
Erik Moeller
e7b1a9e8e3 1) add new preference: use external diffs (uses same framework as external
editors)
2) support for external diffs
3) shuffle some user preferences around
2005-04-12 03:36:20 +00:00
Ævar Arnfjörð Bjarmason
e1f576c14e * A new tab in the preferencesc called 'File' for any current and future
file-related options, moving the images description limit there (from misc)
* (bug 1221) image thumbnail sizes are now a user preference (in the 'Files' tab)
2005-04-12 00:37:45 +00:00
Ævar Arnfjörð Bjarmason
10c9c111e8 * Changing the names for brevity and to make them more generic, e.g.
Search resaults => Search; Math rendering => Math..
2005-04-11 22:52:02 +00:00
Ævar Arnfjörð Bjarmason
d5ec81eb57 * Removed 'prefs-help-userdata' (no longer used) and modified the email and
realname messages to use �� and �� instead of * and **.
2005-04-11 22:27:47 +00:00
Ævar Arnfjörð Bjarmason
062ea7d31e * Changing errorpage() so that it outputs with addWikiText() instead of
addHTML(), also changed all the messages that use it from HTML to wikitext.
  (Patch by Niklas Laxstr��m)
2005-04-10 19:45:56 +00:00
Tim Starling
8d95e6ef85 More informative database errors with SQL suppressed 2005-04-10 09:23:13 +00:00
Ævar Arnfjörð Bjarmason
0626860366 * Removed one of the 'go' keys, there can be only one\! 2005-04-09 09:14:45 +00:00
Ævar Arnfjörð Bjarmason
d136cf390f * Moving a comment between files 2005-04-09 06:30:36 +00:00
Zheng Zhu
b4b7fbe265 some documentations 2005-04-08 16:31:32 +00:00
Ævar Arnfjörð Bjarmason
b67c677de1 * Please document new (and old) functions 2005-04-07 23:08:46 +00:00
Zheng Zhu
ffd7b6829e cache the title text of an article when there is different ways of presenting the title in different language variants 2005-04-07 23:04:08 +00:00
Ævar Arnfjörð Bjarmason
0085d6d0ba * Changed msg:contributionsformtext to support the invert feature. 2005-04-07 21:59:02 +00:00
Ævar Arnfjörð Bjarmason
da8ef5fa1b * Changing the default of $format to false (was '0') 2005-04-07 19:29:38 +00:00
Ævar Arnfjörð Bjarmason
d7f0ff2e8b * A new function, "dateFormat" that allows code duplication in the children.
* Documented
* Rewrote date(), time() and timeanddate() to take atvantage of this new
  function and removed $ts=wfTimestamp(TS_MW,$ts); from all of them, they
  should only ever be passed time in the format of TS_MW.
2005-04-07 19:05:42 +00:00
Ævar Arnfjörð Bjarmason
5442ee5c64 * Removed MW_DATE_DEFAULT, this hasn't been used in the code since REL1_3 when
brion it from includes/LogPage.php in revision 1.16, it's been lurking here
  ever since.
2005-04-07 18:34:26 +00:00
Ævar Arnfjörð Bjarmason
78599bcdb6 * "Show preview before edit box and not after it" => "Show preview before edit box"
* msg:qbsettingsnote removed
* "Rendering math" => "Math rendering" (maybe it's best to just have it as "Math")
2005-04-07 17:24:16 +00:00
Ævar Arnfjörð Bjarmason
da2407ce84 * Added a comment regarding localeconv() 2005-04-05 13:39:43 +00:00
Ævar Arnfjörð Bjarmason
5d00cad93f * @package MediaWiki and @subpackage Language
* Documented getDefaultUserOptions(), getBookstoreList(), getNsText(),
  getNsIndex(), getVariantname(), stripForSearch(), firstChar(), isRTL(),
  linkPrefixExtension(), emphasize(), formatNum()
2005-04-05 11:12:30 +00:00
Ævar Arnfjörð Bjarmason
66d8c6a289 * Documented 2005-04-04 22:58:18 +00:00
Erik Moeller
5257a17fa6 initialize your globals .. 2005-04-04 19:50:52 +00:00
Erik Moeller
10735b367d $seconds is never set and produces a notice; removed for now - please check your code 2005-04-04 16:04:22 +00:00
Ævar Arnfjörð Bjarmason
704b442a82 * Unicode instead of entities on the next/previous diff thingy
* The code now doesn't brainfart if MW_DATE_USER_FORMAT is false
* getMonthName not getMonthAbbreviation (now works as advertised)
2005-04-03 16:43:43 +00:00
Tim Starling
42e3de1523 "Delete to make way for move" feature, for sysops only, including integration with move page revert 2005-04-03 16:20:12 +00:00
Tim Starling
8f0f91659d Page move undo feature 2005-04-03 15:18:51 +00:00
Tim Starling
76fe43ba65 Allow the user to specify a reason for page moves 2005-04-03 14:45:42 +00:00
Ævar Arnfjörð Bjarmason
05edce6ac1 * New feature, the ability to 'invert' namespaces in Special:Allmessages, given
a namespace the 'Invert' namespace can be selected to perform WHERE
  page_namespace != $namespace instead of WHERE page_namespace = ..

** Added code in includes/SpecialAllpages.php to make this possible

** Removed messages: allpagesformtext1 and allpagesformtext2 (obsoleted by the
   new allpagesformtext messsage)
** Renamed message allpagesnamespace to allinnamespace
** Added messages allnonarticles, allnotinnamespace, contributionsformtext

** includes/SpecialContributions.php no longer uses allpagesformtext2 but the
   new contributionsformtext
2005-04-01 11:09:47 +00:00
Ævar Arnfjörð Bjarmason
7f066b9342 ++Precision 2005-03-31 12:35:32 +00:00
Ævar Arnfjörð Bjarmason
fd85c83700 * Changed $wgUploadSizeWarning from 1.5 * 10^5 to 150 * 2^10
* The largefile message now displays $wgUploadSizeWarning
2005-03-31 12:23:23 +00:00
Brion Vibber
22c813ad97 * Add wfElement() for handy generation of properly-escaped XML/HTML elements with attributes.
* Begin infrastructure for deleted-revision tag; add rev_deleted field, some
display support for it in history and contribs. Not yet used for deletions.
Run update.php or source maintenance/archives/patch-rev_deleted.sql
2005-03-31 11:40:05 +00:00
Ævar Arnfjörð Bjarmason
9234c4fd62 Redundant. 2005-03-31 00:06:30 +00:00
Antoine Musso
bc24530ff8 quotes 2005-03-29 20:23:05 +00:00
Tim Starling
7e0484fb87 Support for SORBS DNSBL 2005-03-28 15:19:24 +00:00
Ævar Arnfjörð Bjarmason
f005421815 Fixing the google search which wasn't remotely valid XHTML. 2005-03-26 22:55:57 +00:00
Brion Vibber
11027c83d8 please don't check jokes into CVS :) 2005-03-26 21:54:18 +00:00
Antoine Musso
50eabc0fbf Patch by brion in #mediawiki 2005-03-26 21:49:07 +00:00
Ævar Arnfjörð Bjarmason
9b06a36f4a * (bug 1207) splitting 'all', into recentchangesall, imagelistall,
watchlistall1, watchlistall2, contributionsall to accommodate inflicted
  languages. ( perl -pi -e "s/^['\"]all['\"].*//gs" * is useful =)
2005-03-26 21:26:32 +00:00
Antoine Musso
4caf76c1ea Implement #1739 : new magickeyword REVISIONID. Give the diff / latest revision id for the article being view. Useful for proper citation.
New fetchedRevId method in Article::
2005-03-26 18:24:32 +00:00
Antoine Musso
9db0a63cd2 Fix "ip address or username" when $wgSysopUserBans = false 2005-03-26 17:02:16 +00:00
Ævar Arnfjörð Bjarmason
496609778c * (bug 1668) a redesign of the "Date format" system, languages are now able to
specify an arbitary amount of date formats which they wish to use in the
  $wgDateFormatsXx array, if the array is empty the "Date format" option will
  not be shown, the only languages that currently take atvantage of the
  multiple formats are Icelandic, English and Frysk, I removed all but the
  first item of the $wgDateFormatsXx array from those that don't which should
  show something like "use default".
2005-03-26 01:28:33 +00:00