lhc/web/wiklou.git
19 years agoRemoved debug message from the conversion code
Zheng Zhu [Fri, 17 Sep 2004 04:43:36 +0000 (04:43 +0000)]
Removed debug message from the conversion code

19 years agoBug 480: remove extra spacing from TOC indentation areas
Brion Vibber [Fri, 17 Sep 2004 03:24:14 +0000 (03:24 +0000)]
Bug 480: remove extra spacing from TOC indentation areas

19 years agotables used for Traditional/Simplified Chinese conversion
Zheng Zhu [Thu, 16 Sep 2004 20:39:57 +0000 (20:39 +0000)]
tables used for Traditional/Simplified Chinese conversion

19 years agoAdded entry point to call the Traditional/Simplified Chinese conversion code in Langu...
Zheng Zhu [Thu, 16 Sep 2004 20:25:12 +0000 (20:25 +0000)]
Added entry point to call the Traditional/Simplified Chinese conversion code in LanguageZh.php

19 years agoChanged inheritance from LanguageZh to LanguageZh_cn
Zheng Zhu [Thu, 16 Sep 2004 20:19:52 +0000 (20:19 +0000)]
Changed inheritance from LanguageZh to LanguageZh_cn

19 years agoMoved most content of LanguageZh.php to LanguageZh_cn.php. Now LanguageZh.php mainly...
Zheng Zhu [Thu, 16 Sep 2004 20:18:49 +0000 (20:18 +0000)]
Moved most content of LanguageZh.php to LanguageZh_cn.php. Now LanguageZh.php mainly handles the conversion between Traditional and Simplified Chinese

19 years agofix casting typo
Domas Mituzas [Wed, 15 Sep 2004 07:14:38 +0000 (07:14 +0000)]
fix casting typo

19 years agoreturn status of selectdb
Domas Mituzas [Wed, 15 Sep 2004 06:02:16 +0000 (06:02 +0000)]
return status of selectdb

19 years agoBUG#487 make regex not-so-greedy. If anchored to end-of-line, several lines are eaten if
Jens Frank [Wed, 15 Sep 2004 05:53:21 +0000 (05:53 +0000)]
BUG#487 make regex not-so-greedy. If anchored to end-of-line, several lines are eaten if
there is text following the comment

19 years agoNew Special page: Visual list of newly uploaded images Special:Newimages
Jens Frank [Tue, 14 Sep 2004 20:57:54 +0000 (20:57 +0000)]
New Special page: Visual list of newly uploaded images Special:Newimages

19 years agoSome usability changes after feedback from taw:
Jens Frank [Tue, 14 Sep 2004 19:47:29 +0000 (19:47 +0000)]
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

19 years agoWhoops, debugging comment.
Brion Vibber [Tue, 14 Sep 2004 06:02:01 +0000 (06:02 +0000)]
Whoops, debugging comment.

19 years agoPrudency measure: only enable $wgRawHtml usage if $wgWhitelistEdit is on.
Brion Vibber [Tue, 14 Sep 2004 05:49:15 +0000 (05:49 +0000)]
Prudency measure: only enable $wgRawHtml usage if $wgWhitelistEdit is on.

19 years agoforwardport better fix (thanks brion)
River Tarnell [Tue, 14 Sep 2004 05:35:34 +0000 (05:35 +0000)]
forwardport better fix (thanks brion)

19 years agomerge # moving fix from 1.3
River Tarnell [Tue, 14 Sep 2004 04:57:15 +0000 (04:57 +0000)]
merge # moving fix from 1.3

19 years agoclear bodytext on OutputPage after link parsing
Domas Mituzas [Mon, 13 Sep 2004 07:46:41 +0000 (07:46 +0000)]
clear bodytext on OutputPage after link parsing

19 years agoallow external clearing of mBodytext, without destroying OutputPage object,
Domas Mituzas [Mon, 13 Sep 2004 07:44:27 +0000 (07:44 +0000)]
allow external clearing of mBodytext, without destroying OutputPage object,
required for refreshLinks memory-efficient operation

19 years agoReplaced wgSiteName by {{SITENAME}} in messages
Jens Frank [Sun, 12 Sep 2004 19:44:48 +0000 (19:44 +0000)]
Replaced wgSiteName by {{SITENAME}} in messages

19 years agoBUG#446 Replaced Wikipedia by wgSiteName in message
Jens Frank [Sun, 12 Sep 2004 19:05:00 +0000 (19:05 +0000)]
BUG#446 Replaced Wikipedia by wgSiteName in message

19 years agoBUG#463 Strip first leading blank from preformatted text in output
Jens Frank [Sun, 12 Sep 2004 13:07:52 +0000 (13:07 +0000)]
BUG#463 Strip first leading blank from preformatted text in output

19 years agoRemove { and } from legal title chars, as they cause lots of weird problems
Brion Vibber [Sat, 11 Sep 2004 22:45:59 +0000 (22:45 +0000)]
Remove { and } from legal title chars, as they cause lots of weird problems
being special markup characters. Should not have been added in early 1.3.
* Bug 267: Entering {{...}} as the title causes a page rendering error
* http://bugzilla.wikipedia.org/show_bug.cgi?id=267

19 years agocommit in resource efficient textFieldSize() (uses PG internal schema)
Domas Mituzas [Sat, 11 Sep 2004 14:08:52 +0000 (14:08 +0000)]
commit in resource efficient textFieldSize() (uses PG internal schema)

19 years agoImproved consistency in handling redirects. If #redirect [[Special:Userlogout]] isn...
Tim Starling [Sat, 11 Sep 2004 11:39:24 +0000 (11:39 +0000)]
Improved consistency in handling redirects. If #redirect [[Special:Userlogout]] isn't a redirect, it shouldn't be treated like one in various places.

19 years agoSet the user text on the initial main page to "MediaWiki default" like the
Brion Vibber [Sat, 11 Sep 2004 10:57:08 +0000 (10:57 +0000)]
Set the user text on the initial main page to "MediaWiki default" like the
messages instead of leaving it blank, which results in a strange contribs
link in history.

19 years agoRemove indexes.sql; index definitions are now in the table creation in
Brion Vibber [Sat, 11 Sep 2004 10:46:27 +0000 (10:46 +0000)]
Remove indexes.sql; index definitions are now in the table creation in
tables.sql where they belong. Changed some UNIQUE to PRIMARY KEY, removed
unneeded cur_namespace index, added UNIQUE index on cur_namespace,
cur_title combination to enforce correctness a bit on new wikis.

19 years agoIt's traditional to put quotes around your strings. ;)
Brion Vibber [Sat, 11 Sep 2004 10:42:18 +0000 (10:42 +0000)]
It's traditional to put quotes around your strings. ;)

19 years agodocumentation: noting that a function is obsolete
Tim Starling [Sat, 11 Sep 2004 09:44:15 +0000 (09:44 +0000)]
documentation: noting that a function is obsolete

19 years agobetter debug info
Tim Starling [Sat, 11 Sep 2004 09:41:42 +0000 (09:41 +0000)]
better debug info

19 years agounreported bug in the new makeTitle(), disallow redirects to Special:Userlogout
Tim Starling [Sat, 11 Sep 2004 09:35:24 +0000 (09:35 +0000)]
unreported bug in the new makeTitle(), disallow redirects to Special:Userlogout

19 years agoUse <i> and <b> for '' and ''' instead of <em> and <strong>. There's no
Brion Vibber [Sat, 11 Sep 2004 08:40:26 +0000 (08:40 +0000)]
Use <i> and <b> for '' and ''' instead of <em> and <strong>. There's no
good reason to use <em> and <strong> here; they increase cache storage
and bandwidth requirements ;) and may be abusing semantic markup.

* Bug 369: '' should be interpreted as <i>, not <em>
http://bugzilla.wikipedia.org/show_bug.cgi?id=369
* Bug 370: ''' should be interpreted as <b>, not <strong>
http://bugzilla.wikipedia.org/show_bug.cgi?id=370

19 years agoexplicit default values for everything, for consistency and to avoid notices when...
Tim Starling [Sat, 11 Sep 2004 08:32:58 +0000 (08:32 +0000)]
explicit default values for everything, for consistency and to avoid notices when accessing the array

19 years ago* Sensible error messages when illegal title chars given in username
Brion Vibber [Sat, 11 Sep 2004 06:58:47 +0000 (06:58 +0000)]
* Sensible error messages when illegal title chars given in username
* Don't double the login form when asked to send pass for no email user
Fixes bug 448: failure message on "mail password" is shown twice
http://bugzilla.wikipedia.org/show_bug.cgi?id=448

19 years agomissing parameter in noemail
Brion Vibber [Sat, 11 Sep 2004 06:44:47 +0000 (06:44 +0000)]
missing parameter in noemail

19 years agovirgin pg grants
Domas Mituzas [Fri, 10 Sep 2004 10:58:37 +0000 (10:58 +0000)]
virgin pg grants

19 years agospecify cur_user as 0 on message import
Domas Mituzas [Fri, 10 Sep 2004 07:30:40 +0000 (07:30 +0000)]
specify cur_user as 0 on message import

19 years agoLimit height even if width has already been reduced.
Jens Frank [Fri, 10 Sep 2004 01:07:31 +0000 (01:07 +0000)]
Limit height even if width has already been reduced.

19 years agoNew user option. Provides a setting to limit the image size on image description...
Jens Frank [Fri, 10 Sep 2004 00:53:31 +0000 (00:53 +0000)]
New user option. Provides a setting to limit the image size on image description pages.

19 years agofixed warning on category pages. changing order of conditions ensures that $index...
Jens Frank [Fri, 10 Sep 2004 00:31:55 +0000 (00:31 +0000)]
fixed warning on category pages. changing order of conditions ensures that $index-1 is a valid index

19 years agohere is the correct fix for head (MF 1.3)
River Tarnell [Thu, 9 Sep 2004 23:24:36 +0000 (23:24 +0000)]
here is the correct fix for head (MF 1.3)

19 years agodon't parse blank ISBNs
River Tarnell [Thu, 9 Sep 2004 23:04:08 +0000 (23:04 +0000)]
don't parse blank ISBNs

19 years agoRe-enable message transformations when we're done building the message list.
Brion Vibber [Thu, 9 Sep 2004 22:22:17 +0000 (22:22 +0000)]
Re-enable message transformations when we're done building the message list.
Fix for bug 435: Page footer variables not replaced when viewing Special:Allmessages
http://bugzilla.wikipedia.org/show_bug.cgi?id=435

19 years agoI had a fix for this bug sitting in my working copy for over a week without getting...
Tim Starling [Thu, 9 Sep 2004 12:11:10 +0000 (12:11 +0000)]
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.

19 years agoUse Database:aggregateValue() for HAVING and GROUP BY clauses, closes bug387
Domas Mituzas [Thu, 9 Sep 2004 12:10:58 +0000 (12:10 +0000)]
Use Database:aggregateValue() for HAVING and GROUP BY clauses, closes bug387

19 years agoadd aggregateValue(), as some databases require different aggregated value specificat...
Domas Mituzas [Thu, 9 Sep 2004 12:04:39 +0000 (12:04 +0000)]
add aggregateValue(), as some databases require different aggregated value specifications in HAVING and ORDER clauses

19 years agoNicer database wrapper names
Tim Starling [Thu, 9 Sep 2004 11:54:01 +0000 (11:54 +0000)]
Nicer database wrapper names

19 years agoremove unix_timestamp() from query, and wfUnix2Timestamp(). I could not find any...
Domas Mituzas [Thu, 9 Sep 2004 11:53:14 +0000 (11:53 +0000)]
remove unix_timestamp() from query, and wfUnix2Timestamp(). I could not find any reason, really, no other reason, for that redundant job. Fixes bug386

19 years agofix timestamps, change multirow insert query into Database:insertArray()
Domas Mituzas [Thu, 9 Sep 2004 08:34:45 +0000 (08:34 +0000)]
fix timestamps, change multirow insert query into Database:insertArray()

19 years agospecify defaults for cur_user and cur_user_text
Domas Mituzas [Thu, 9 Sep 2004 08:33:00 +0000 (08:33 +0000)]
specify defaults for cur_user and cur_user_text

19 years agotsfixen
Domas Mituzas [Thu, 9 Sep 2004 07:13:06 +0000 (07:13 +0000)]
tsfixen

19 years agoadd indexUnique()
Domas Mituzas [Thu, 9 Sep 2004 07:12:11 +0000 (07:12 +0000)]
add indexUnique()

19 years agoInstaller support for picking traditional Chinese (zh-tw) localization.
Brion Vibber [Thu, 9 Sep 2004 06:31:19 +0000 (06:31 +0000)]
Installer support for picking traditional Chinese (zh-tw) localization.

19 years agoFix register_globals vulnerability checked in last week.
Brion Vibber [Thu, 9 Sep 2004 06:12:04 +0000 (06:12 +0000)]
Fix register_globals vulnerability checked in last week.

19 years agoUse require_once instead of include_once on the generated LocalSettings.php.
Brion Vibber [Thu, 9 Sep 2004 05:08:47 +0000 (05:08 +0000)]
Use require_once instead of include_once on the generated LocalSettings.php.
If it doesn't work,  everything will break and there may be register_globals
problems, so let's make extra sure.

19 years agoAdd Database::conditional() function to build IF() or CASE statements
Brion Vibber [Thu, 9 Sep 2004 00:02:38 +0000 (00:02 +0000)]
Add Database::conditional() function to build IF() or CASE statements
depending on the RDBMS used. Allowed NULL in some RC fields on PostgreSQL.

Fix for bug 407: rebuildrecentchanges.php fails on PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=407

19 years agoRe-order tables in FROM to get it working on PostgreSQL.
Brion Vibber [Wed, 8 Sep 2004 23:24:17 +0000 (23:24 +0000)]
Re-order tables in FROM to get it working on PostgreSQL.
Fix for bug 393: Special:Log fails on PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=393

19 years agoENH#208 Updated:
Jens Frank [Wed, 8 Sep 2004 22:01:58 +0000 (22:01 +0000)]
ENH#208 Updated:
* using searchindex
* client.php can only be called using the cli
* upon first sight, nusoap seems to be utf8-clean. search query for utf8 strings succeeded.

19 years agoAdd Database::getSoftwareLink() and Database::getServerVersion(), and use
Brion Vibber [Wed, 8 Sep 2004 20:36:41 +0000 (20:36 +0000)]
Add Database::getSoftwareLink() and Database::getServerVersion(), and use
those in Special:Version.

Fixes bug 388: Special:Version shows MySQL version when using PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=388

19 years agoUse handy-dandy __FILE__ constant to get the pathname instead of more
Brion Vibber [Wed, 8 Sep 2004 20:20:10 +0000 (20:20 +0000)]
Use handy-dandy __FILE__ constant to get the pathname instead of more
cumbersome means. Would be nice if PHP documented these things better;
things that aren't functions are very hard to find in their online docs.

19 years agoPatch to only load $msgAllMessages instead of replacing the language object.
Antoine Musso [Wed, 8 Sep 2004 13:32:13 +0000 (13:32 +0000)]
Patch to only load $msgAllMessages instead of replacing the language object.
It's slow as the language object constructor is called twice.
See: http://bugzilla.wikipedia.org/show_bug.cgi?id=184

19 years agoAdd $wgUserLanguages array to specify which languages users are allowed
Brion Vibber [Wed, 8 Sep 2004 07:35:00 +0000 (07:35 +0000)]
Add $wgUserLanguages array to specify which languages users are allowed
to select for the user interface. If this is left at the default empty
array the selection is disabled.

Currently the language selection is broken and will fail for many
cases, using bogus namespaces and probably corrupting your database
with bogus links, search index updates, and more.

19 years agofix notice when asked for bogus messages
Brion Vibber [Wed, 8 Sep 2004 07:20:25 +0000 (07:20 +0000)]
fix notice when asked for bogus messages

19 years agoRegistered user can set their own language for the interface. See http://bugzilla...
Antoine Musso [Wed, 8 Sep 2004 03:39:32 +0000 (03:39 +0000)]
Registered user can set their own language for the interface. See bugzilla.wikipedia.org/show_bug.cgi?id=184

19 years ago'yourlanguage' => 'Interface language'
Antoine Musso [Wed, 8 Sep 2004 01:36:51 +0000 (01:36 +0000)]
'yourlanguage' => 'Interface language'

19 years ago* double quotes to single quotes
Antoine Musso [Wed, 8 Sep 2004 01:24:35 +0000 (01:24 +0000)]
* double quotes to single quotes
* phpdoc comments

19 years agoBUG#76 For categories, don't use the Category:-prefix for the sortkey.
Jens Frank [Tue, 7 Sep 2004 22:08:01 +0000 (22:08 +0000)]
BUG#76 For categories, don't use the Category:-prefix for the sortkey.
[[Category:Mountains of Panama]] now gets cl_sortkey='Mountains of Panama' instead of 'Category:Mountains of Panama'.
Avoids later issues with sorting.

19 years agoallow NULL html/mathml entries in math table
Domas Mituzas [Tue, 7 Sep 2004 13:44:51 +0000 (13:44 +0000)]
allow NULL html/mathml entries in math table

19 years agoreplace fixes:
Brion Vibber [Tue, 7 Sep 2004 08:37:50 +0000 (08:37 +0000)]
replace fixes:
* use array_keys() instead of array_flip() to get the keys, since the latter fails with NULL data
* where there is a single-column unique index, don't forget the initial paren since it's going to get closed [fix for <math> rendering]

19 years agoUse array_keys() rather than array_flip(), which fails for NULL values.
Brion Vibber [Tue, 7 Sep 2004 08:25:35 +0000 (08:25 +0000)]
Use array_keys() rather than array_flip(), which fails for NULL values.

19 years agoeditupdates tsfix
Domas Mituzas [Tue, 7 Sep 2004 08:16:38 +0000 (08:16 +0000)]
editupdates tsfix

19 years agotsfix
Domas Mituzas [Tue, 7 Sep 2004 08:00:45 +0000 (08:00 +0000)]
tsfix

19 years agotimestamp fix
Domas Mituzas [Tue, 7 Sep 2004 06:56:44 +0000 (06:56 +0000)]
timestamp fix

19 years agotypo fix, ipblock expire 'with timezone' -> 'without timezone'
Domas Mituzas [Tue, 7 Sep 2004 06:46:37 +0000 (06:46 +0000)]
typo fix, ipblock expire 'with timezone' -> 'without timezone'

19 years agofix timestamp for expiry too
Domas Mituzas [Tue, 7 Sep 2004 06:26:15 +0000 (06:26 +0000)]
fix timestamp for expiry too

19 years agotimestamp fix, PR405
Domas Mituzas [Tue, 7 Sep 2004 06:20:51 +0000 (06:20 +0000)]
timestamp fix, PR405

19 years agoBUG#403 User page link in Special:Contributions subtitle fails [1.4]
Jens Frank [Tue, 7 Sep 2004 06:14:34 +0000 (06:14 +0000)]
BUG#403 User page link in Special:Contributions subtitle fails [1.4]
Disable delayed link colouring for the link in the header.

19 years agoJust return if running on PostgreSQL, as this change predates PG support.
Brion Vibber [Tue, 7 Sep 2004 02:29:04 +0000 (02:29 +0000)]
Just return if running on PostgreSQL, as this change predates PG support.

19 years agoFix parse error
Brion Vibber [Tue, 7 Sep 2004 02:25:50 +0000 (02:25 +0000)]
Fix parse error

19 years agoFix include
Brion Vibber [Tue, 7 Sep 2004 02:20:02 +0000 (02:20 +0000)]
Fix include

19 years agomore verbose description
Jens Frank [Mon, 6 Sep 2004 21:01:18 +0000 (21:01 +0000)]
more verbose description

19 years agoParentheses needed for this regex for correct treatment of alternatives.
Jens Frank [Mon, 6 Sep 2004 20:36:35 +0000 (20:36 +0000)]
Parentheses needed for this regex for correct treatment of alternatives.
 ^(#REDIRECT|#UMLEITUNG) instead of ^#REDIRECT|#UMLEITUNG, where the anchor would only be used for #REDIRECT
Bug reported by borislav for Bulgarian deletion log page

19 years agomissing _
River Tarnell [Mon, 6 Sep 2004 16:51:06 +0000 (16:51 +0000)]
missing _

19 years ago- apparently we're not meant to do it this way...
River Tarnell [Mon, 6 Sep 2004 16:47:48 +0000 (16:47 +0000)]
- apparently we're not meant to do it this way...

19 years ago- correct project namespace
River Tarnell [Mon, 6 Sep 2004 15:12:42 +0000 (15:12 +0000)]
- correct project namespace

19 years agospecify DEFAULT for cur_restrictions
Domas Mituzas [Mon, 6 Sep 2004 10:16:22 +0000 (10:16 +0000)]
specify DEFAULT for cur_restrictions

19 years agoyet another group by fix!
Domas Mituzas [Mon, 6 Sep 2004 10:14:32 +0000 (10:14 +0000)]
yet another group by fix!

19 years agolastmodified timestamps
Domas Mituzas [Mon, 6 Sep 2004 10:10:49 +0000 (10:10 +0000)]
lastmodified timestamps

19 years agofix GROUP BY
Domas Mituzas [Mon, 6 Sep 2004 10:02:16 +0000 (10:02 +0000)]
fix GROUP BY

19 years agofix timestamps, sequences
Domas Mituzas [Mon, 6 Sep 2004 09:57:30 +0000 (09:57 +0000)]
fix timestamps, sequences

19 years agodon't replace empty resultsets! :)
Domas Mituzas [Mon, 6 Sep 2004 09:56:29 +0000 (09:56 +0000)]
don't replace empty resultsets! :)

19 years agotimestamp fix
Domas Mituzas [Mon, 6 Sep 2004 09:34:44 +0000 (09:34 +0000)]
timestamp fix

19 years agoadd logging table
Domas Mituzas [Mon, 6 Sep 2004 09:01:17 +0000 (09:01 +0000)]
add logging table

19 years agoFix missing quotes in query which broke metadata XML loading
Brion Vibber [Mon, 6 Sep 2004 09:00:44 +0000 (09:00 +0000)]
Fix missing quotes in query which broke metadata XML loading

19 years agofix timestamp
Domas Mituzas [Mon, 6 Sep 2004 08:43:55 +0000 (08:43 +0000)]
fix timestamp

19 years agofix replace()
Domas Mituzas [Mon, 6 Sep 2004 08:30:42 +0000 (08:30 +0000)]
fix replace()

19 years agoextend makeList so it could include database field names
Domas Mituzas [Mon, 6 Sep 2004 08:30:05 +0000 (08:30 +0000)]
extend makeList so it could include database field names

19 years agooops, register_globals security flaw
Domas Mituzas [Mon, 6 Sep 2004 06:58:53 +0000 (06:58 +0000)]
oops, register_globals security flaw

19 years agoallow empty server
Domas Mituzas [Mon, 6 Sep 2004 06:57:32 +0000 (06:57 +0000)]
allow empty server

19 years agomove weekdays and month names to $wgAllmessagesZh_tw array
Arne Heizmann [Mon, 6 Sep 2004 06:00:28 +0000 (06:00 +0000)]
move weekdays and month names to $wgAllmessagesZh_tw array

19 years agoCopy updated version from stable branch.
Brion Vibber [Mon, 6 Sep 2004 05:48:41 +0000 (05:48 +0000)]
Copy updated version from stable branch.

19 years agoQuick fix for canonical redirects when the URL is case-converted.
Brion Vibber [Mon, 6 Sep 2004 03:17:21 +0000 (03:17 +0000)]
Quick fix for canonical redirects when the URL is case-converted.
Since this is now done in WebRequest, $title is already converted so
check $_GET directly.

The canonical redirect still does not handle the case of an
index.php?title=Foo URL where $wgArticlePath is set for pretty
URLs.