lhc/web/wiklou.git
18 years agoQuick fix: revert cached sidebar
Brion Vibber [Sat, 14 Jan 2006 17:09:32 +0000 (17:09 +0000)]
Quick fix: revert cached sidebar
Breaks badly due to user language selection

18 years agoReverting this patch:
Brion Vibber [Sat, 14 Jan 2006 15:07:08 +0000 (15:07 +0000)]
Reverting this patch:
* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
  page view (comes after parser cache, if used). Patch by ThomasV.
Something still bugged in this; was saving bogus history entries to parser cache.

18 years agobring back mainpage navurl, it was used outside of sidebar
Domas Mituzas [Sat, 14 Jan 2006 14:21:58 +0000 (14:21 +0000)]
bring back mainpage navurl, it was used outside of sidebar

18 years agoNew Kalmyk language file
Alexander Sigachov [Sat, 14 Jan 2006 13:11:12 +0000 (13:11 +0000)]
New Kalmyk language file

18 years agoBe less anal about entry points, class definitions do no harm to anyone, defined...
Domas Mituzas [Sat, 14 Jan 2006 11:04:04 +0000 (11:04 +0000)]
Be less anal about entry points, class definitions do no harm to anyone, defined() is expensive

18 years agoremove cruft (all these names are resolved in buildSidebar)
Domas Mituzas [Sat, 14 Jan 2006 10:25:34 +0000 (10:25 +0000)]
remove cruft (all these names are resolved in buildSidebar)

18 years agoRevert brion's revert. And learning a lesson about rebinding references. Ergh, I...
Domas Mituzas [Sat, 14 Jan 2006 09:58:29 +0000 (09:58 +0000)]
Revert brion's revert. And learning a lesson about rebinding references. Ergh, I need to read php docs again :)
Removing several & in previous code would have fixed everything, bwah.

18 years agosome more die-with-proper-return-code
Brion Vibber [Sat, 14 Jan 2006 08:04:38 +0000 (08:04 +0000)]
some more die-with-proper-return-code

18 years ago* Allow input of the stub from a compressed file instead of stdin
Brion Vibber [Sat, 14 Jan 2006 05:46:48 +0000 (05:46 +0000)]
* Allow input of the stub from a compressed file instead of stdin
  for dumpTextPass.php; easier to get errors back on the shell

18 years agoRevert Domas's last checkin, it broke tabs on redirects. Please test before checkin!
Brion Vibber [Sat, 14 Jan 2006 04:35:43 +0000 (04:35 +0000)]
Revert Domas's last checkin, it broke tabs on redirects. Please test before checkin!

18 years agoReverted Domas's last checkin. Broken! Please test more thoroughly before checkin.
Brion Vibber [Sat, 14 Jan 2006 04:34:06 +0000 (04:34 +0000)]
Reverted Domas's last checkin. Broken! Please test more thoroughly before checkin.
Tabs had the wrong page info (redirect source instead of target)

18 years agoHandle redirects correctly, saves queries (no revision text loading for cached docume...
Domas Mituzas [Sat, 14 Jan 2006 03:11:24 +0000 (03:11 +0000)]
Handle redirects correctly, saves queries (no revision text loading for cached documents, etc)

18 years agosave ArticleID when it is around, saves one query :-)
Domas Mituzas [Sat, 14 Jan 2006 03:10:42 +0000 (03:10 +0000)]
save ArticleID when it is around, saves one query :-)

18 years agotransformMsg profiling hook, shows when site messages suck
Domas Mituzas [Sat, 14 Jan 2006 03:08:04 +0000 (03:08 +0000)]
transformMsg profiling hook, shows when site messages suck

18 years ago* Added wfDie() wrapper, and some manual die(-1), to force the return code
Brion Vibber [Sat, 14 Jan 2006 02:49:43 +0000 (02:49 +0000)]
* Added wfDie() wrapper, and some manual die(-1), to force the return code
  to the shell to return nonzero when we crap out with an error.

18 years agoLocalSettings.php to ignore list :D
Brion Vibber [Sat, 14 Jan 2006 02:46:40 +0000 (02:46 +0000)]
LocalSettings.php to ignore list :D

18 years ago* Remove obsolete killthread.php
Brion Vibber [Sat, 14 Jan 2006 02:37:55 +0000 (02:37 +0000)]
* Remove obsolete killthread.php

18 years agoold incomplete script; upgrade1_5 took this code
Brion Vibber [Sat, 14 Jan 2006 02:25:29 +0000 (02:25 +0000)]
old incomplete script; upgrade1_5 took this code

18 years ago* Fixed installer bugs 921 and 3914 (issues with using root and so forth)
Rob Church [Sat, 14 Jan 2006 01:45:14 +0000 (01:45 +0000)]
* Fixed installer bugs 921 and 3914 (issues with using root and so forth)

18 years agothe revert at will style commit: cached sidebar :-)
Domas Mituzas [Fri, 13 Jan 2006 23:57:02 +0000 (23:57 +0000)]
the revert at will style commit: cached sidebar :-)

18 years ago* Add wfClone() wrapper since we're still using PHP 4 on some servers.
Brion Vibber [Fri, 13 Jan 2006 20:13:58 +0000 (20:13 +0000)]
* Add wfClone() wrapper since we're still using PHP 4 on some servers.

18 years ago* Linker::formatComment corrupted the passed title object on PHP 5
Brion Vibber [Fri, 13 Jan 2006 19:58:23 +0000 (19:58 +0000)]
* Linker::formatComment corrupted the passed title object on PHP 5
  if the comment included a section link. Use clone() to make a safe copy.

18 years agorevert to Wiki.php 1.28 and index.php 1.130
Brion Vibber [Fri, 13 Jan 2006 17:33:37 +0000 (17:33 +0000)]
revert to Wiki.php 1.28 and index.php 1.130
this broke wikipedia. please DO NOT COMMIT BROKEN CODE ON HEAD EVER AGAIN

18 years ago* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
Brion Vibber [Fri, 13 Jan 2006 17:00:05 +0000 (17:00 +0000)]
* (bug 4104) 'OutputPageBeforeHTML' hook to postprocess article HTML on
  page view (comes after parser cache, if used). Patch by ThomasV.

http://bugzilla.wikimedia.org/attachment.cgi?id=1290&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1296&action=view
http://bugzilla.wikimedia.org/attachment.cgi?id=1297&action=view

18 years ago* (bug 4594) date("W", ..) is zero padded in PHP5, not so in PHP4, removing
Ævar Arnfjörð Bjarmason [Fri, 13 Jan 2006 16:10:12 +0000 (16:10 +0000)]
* (bug 4594) date("W", ..) is zero padded in PHP5, not so in PHP4, removing
  the padding

18 years ago* Docucmentaton: Fixed speling eror
Ævar Arnfjörð Bjarmason [Fri, 13 Jan 2006 14:34:02 +0000 (14:34 +0000)]
* Docucmentaton: Fixed speling eror

18 years agoindex.php now fits on a single screen :-)
Magnus Manske [Fri, 13 Jan 2006 12:52:04 +0000 (12:52 +0000)]
index.php now fits on a single screen :-)

18 years agoFurther cleanup of index.php
Magnus Manske [Fri, 13 Jan 2006 12:10:59 +0000 (12:10 +0000)]
Further cleanup of index.php

18 years agoaccidentally committed experimental code
Tim Starling [Fri, 13 Jan 2006 10:29:24 +0000 (10:29 +0000)]
accidentally committed experimental code

18 years agoCode cleanup in cleanSig
Rob Church [Fri, 13 Jan 2006 09:47:09 +0000 (09:47 +0000)]
Code cleanup in cleanSig

* Remove gratuitous whitespace and eliminate needless use of one-time variables
* Remove @static tag since it's not static-safe and isn't used like that any more

18 years agorequire_once() makes about 20 syscalls in the process of checking if the file has...
Tim Starling [Fri, 13 Jan 2006 09:31:51 +0000 (09:31 +0000)]
require_once() makes about 20 syscalls in the process of checking if the file has been included before. Moving it outside the loop.

18 years ago* (bug 1103) Fix up redirect handling for images, categories
Brion Vibber [Fri, 13 Jan 2006 00:29:20 +0000 (00:29 +0000)]
* (bug 1103) Fix up redirect handling for images, categories
  Redirects are now followed from the top-level, outside of the Article
  content loading and viewing, for clarity and consistency.

18 years ago* Remove redundant 'echo' statements from MonoBook.php
Brion Vibber [Fri, 13 Jan 2006 00:24:24 +0000 (00:24 +0000)]
* Remove redundant 'echo' statements from MonoBook.php
I think these got inserted in a search-and-replace after someone broke the entire site by using incorrect short open tags.

18 years ago* Fix extra whitespace at end of Wiki.php, DESTROYS XML OUTPUT
Brion Vibber [Fri, 13 Jan 2006 00:19:48 +0000 (00:19 +0000)]
* Fix extra whitespace at end of Wiki.php, DESTROYS XML OUTPUT

18 years agowhitespace
Brion Vibber [Fri, 13 Jan 2006 00:07:55 +0000 (00:07 +0000)]
whitespace

18 years agoFix some bogus/changed test cases...
Brion Vibber [Fri, 13 Jan 2006 00:02:41 +0000 (00:02 +0000)]
Fix some bogus/changed test cases...
Passed 247 of 275 tests (89.82%) FAILED!

18 years ago* Override $wgLocaltimezone in parser tests for us outside Iceland and UK
Brion Vibber [Thu, 12 Jan 2006 23:06:49 +0000 (23:06 +0000)]
* Override $wgLocaltimezone in parser tests for us outside Iceland and UK

18 years agoRemove hack from signature clean-up code; implement the clean-up properly within...
Rob Church [Thu, 12 Jan 2006 22:38:55 +0000 (22:38 +0000)]
Remove hack from signature clean-up code; implement the clean-up properly within preferences

18 years ago* (bug 4576) Missing '>' broke license selector's first option in IE, Opera
Brion Vibber [Thu, 12 Jan 2006 22:09:43 +0000 (22:09 +0000)]
* (bug 4576) Missing '>' broke license selector's first option in IE, Opera

18 years agoWhitespace, per Brion
Rob Church [Thu, 12 Jan 2006 21:11:11 +0000 (21:11 +0000)]
Whitespace, per Brion

18 years agoWhitespace, and flag hack
Rob Church [Thu, 12 Jan 2006 20:56:55 +0000 (20:56 +0000)]
Whitespace, and flag hack

18 years agoSlightly dirty hack to avoid a fatal PHP error when changing sig. I'll need to rethin...
Rob Church [Thu, 12 Jan 2006 20:50:33 +0000 (20:50 +0000)]
Slightly dirty hack to avoid a fatal PHP error when changing sig. I'll need to rethink this bit in SpecialPreferences, though.

18 years ago* (bug 2026) missing glue around \not= (TeX)
Rob Church [Thu, 12 Jan 2006 20:38:31 +0000 (20:38 +0000)]
* (bug 2026) missing glue around \not= (TeX)

18 years ago* (bug 1663) support color in TeX formulas
Rob Church [Thu, 12 Jan 2006 20:34:04 +0000 (20:34 +0000)]
* (bug 1663) support color in TeX formulas

18 years ago* (bug 4000) Support for \textstyle et al. in <math>
Rob Church [Thu, 12 Jan 2006 20:20:07 +0000 (20:20 +0000)]
* (bug 4000) Support for \textstyle et al. in <math>

18 years ago* (bug 3502) Bowtie symbol for TeX
Rob Church [Thu, 12 Jan 2006 20:17:30 +0000 (20:17 +0000)]
* (bug 3502) Bowtie symbol for TeX

18 years agoFixed ~<includeonly>~</includeonly>~~, problem reported on enwiki village pump
Tim Starling [Thu, 12 Jan 2006 15:42:38 +0000 (15:42 +0000)]
Fixed ~<includeonly>~</includeonly>~~, problem reported on enwiki village pump

18 years ago* (bug 4571) Partial fix hack for {{fulllurl:}} in action=render
Brion Vibber [Thu, 12 Jan 2006 10:06:54 +0000 (10:06 +0000)]
* (bug 4571) Partial fix hack for {{fulllurl:}} in action=render
Quick hack to do the same check in getFullUrl() that happens in getLocalUrl()
and if it matches *don't* add a duplicate URL prefix.
However anything is still broken that expects it, such as {{localurl:}} and it feels generally hacky.
Also switched from getText() which does expensive encoding checks to getVal()

18 years ago* Avoid PHP notice on command-line scripts if empty argument is passed ('')
Brion Vibber [Thu, 12 Jan 2006 08:40:13 +0000 (08:40 +0000)]
* Avoid PHP notice on command-line scripts if empty argument is passed ('')

18 years agofixed infinite recursion in SVG error path
Tim Starling [Thu, 12 Jan 2006 04:38:20 +0000 (04:38 +0000)]
fixed infinite recursion in SVG error path

18 years agoMoving more stuff to Wiki.php
Magnus Manske [Wed, 11 Jan 2006 19:33:15 +0000 (19:33 +0000)]
Moving more stuff to Wiki.php

18 years agoMost of index.php now in Wiki.php
Magnus Manske [Wed, 11 Jan 2006 15:46:01 +0000 (15:46 +0000)]
Most of index.php now in Wiki.php

18 years agoConsolidation of mediaWIki calls into Wiki.php
Magnus Manske [Wed, 11 Jan 2006 14:42:32 +0000 (14:42 +0000)]
Consolidation of mediaWIki calls into Wiki.php

18 years ago* (bug 4563) Fixed typo and added a translation for 'view'
Ævar Arnfjörð Bjarmason [Wed, 11 Jan 2006 14:18:25 +0000 (14:18 +0000)]
* (bug 4563) Fixed typo and added a translation for 'view'

18 years agoPage creation now mostly moved from index.php to Wiki.php
Magnus Manske [Wed, 11 Jan 2006 14:01:40 +0000 (14:01 +0000)]
Page creation now mostly moved from index.php to Wiki.php

18 years agomoved more stuff
Magnus Manske [Wed, 11 Jan 2006 13:28:23 +0000 (13:28 +0000)]
moved more stuff

18 years agofix
Magnus Manske [Wed, 11 Jan 2006 13:04:43 +0000 (13:04 +0000)]
fix

18 years agoMoving more stuff
Magnus Manske [Wed, 11 Jan 2006 12:56:13 +0000 (12:56 +0000)]
Moving more stuff

18 years agoSlowly moving more stuff from index.php to Wiki.php
Magnus Manske [Wed, 11 Jan 2006 12:25:41 +0000 (12:25 +0000)]
Slowly moving more stuff from index.php to Wiki.php

18 years agoImage redirect fix back in
Magnus Manske [Wed, 11 Jan 2006 09:24:34 +0000 (09:24 +0000)]
Image redirect fix back in
* "Redirected from" worked before, and works now
* Fixed "redirect=no"

18 years agoDo the checks for template existence in a batch
Tim Starling [Wed, 11 Jan 2006 06:33:48 +0000 (06:33 +0000)]
Do the checks for template existence in a batch

18 years ago* Improve the "uploads disabled" warning
Rob Church [Wed, 11 Jan 2006 03:55:37 +0000 (03:55 +0000)]
* Improve the "uploads disabled" warning
* OutputPage::sysopRequired() ==> OutputPage::permissionRequired() when blocking and uploading files

18 years agoClear up some instances of old OutputPage::sysopRequired() function usage, replace...
Rob Church [Wed, 11 Jan 2006 03:37:51 +0000 (03:37 +0000)]
Clear up some instances of old OutputPage::sysopRequired() function usage, replace with permissionRequired()

18 years ago* (bug 4530) Use consistent name for Kurdish
Rob Church [Wed, 11 Jan 2006 03:07:00 +0000 (03:07 +0000)]
* (bug 4530) Use consistent name for Kurdish
[ Actually do what the bug report asked for ;-) ]

18 years ago* Cleanup and error checking on Special:Listredirects
Brion Vibber [Wed, 11 Jan 2006 02:54:22 +0000 (02:54 +0000)]
* Cleanup and error checking on Special:Listredirects

18 years agofix non-UTF8 char
Brion Vibber [Wed, 11 Jan 2006 02:34:50 +0000 (02:34 +0000)]
fix non-UTF8 char

18 years agoIf a template is a redirect, register both titles in the templatelinks table. This...
Tim Starling [Wed, 11 Jan 2006 02:19:41 +0000 (02:19 +0000)]
If a template is a redirect, register both titles in the templatelinks table. This ensures that the cache will be invalidated.

18 years agoInitialise external storage
Tim Starling [Wed, 11 Jan 2006 01:02:47 +0000 (01:02 +0000)]
Initialise external storage

18 years agowhitespace
Brion Vibber [Wed, 11 Jan 2006 00:16:02 +0000 (00:16 +0000)]
whitespace

18 years agoRevert namespacebanner feature:
Brion Vibber [Wed, 11 Jan 2006 00:09:42 +0000 (00:09 +0000)]
Revert namespacebanner feature:
* causes fatal error during database error reporting
* indirect keys won't show up in allmessages; check this for correctness and safety
* no release notes entry for new feature!

18 years agoRevert bogus change for bug 4530; doesn't do as requested
Brion Vibber [Wed, 11 Jan 2006 00:01:15 +0000 (00:01 +0000)]
Revert bogus change for bug 4530; doesn't do as requested

18 years agoReverting image redirect fix; side effects:
Brion Vibber [Tue, 10 Jan 2006 23:57:30 +0000 (23:57 +0000)]
Reverting image redirect fix; side effects:
* no 'redirected from' backlink
* redirect=no mode failed to work

18 years agoNote about $wgCacheEpoch format ( `date +%Y%m%d%H%M%S` )
Antoine Musso [Tue, 10 Jan 2006 23:17:32 +0000 (23:17 +0000)]
Note about $wgCacheEpoch format ( `date +%Y%m%d%H%M%S` )

18 years agofixed redirect-to-image bug
Magnus Manske [Tue, 10 Jan 2006 22:13:18 +0000 (22:13 +0000)]
fixed redirect-to-image bug

18 years agomini-fix
Magnus Manske [Tue, 10 Jan 2006 21:49:56 +0000 (21:49 +0000)]
mini-fix

18 years agoBrion-style conformity :-)
Magnus Manske [Tue, 10 Jan 2006 21:45:56 +0000 (21:45 +0000)]
Brion-style conformity :-)

18 years agomoving some more stuff from index.php to Wiki.php
Magnus Manske [Tue, 10 Jan 2006 21:20:03 +0000 (21:20 +0000)]
moving some more stuff from index.php to Wiki.php

18 years agoTemporarily removing Upgrader extension thingy
Brion Vibber [Tue, 10 Jan 2006 20:00:28 +0000 (20:00 +0000)]
Temporarily removing Upgrader extension thingy
* including code from DefaultSettings is a no-no
* no release-notes entries for major changes?
* not following code formatting standards
* serial version numbers probably not reliable
* HEAD is our production code; maybe try this separately first?

18 years agoBug 4555: [patch] Fix for Language.php bug introduced in revision 1.784
Niklas Laxström [Tue, 10 Jan 2006 19:53:29 +0000 (19:53 +0000)]
Bug 4555: [patch] Fix for Language.php bug introduced in revision 1.784

18 years agoBug 4548: Update for Portuguese language (pt)
Niklas Laxström [Tue, 10 Jan 2006 19:06:31 +0000 (19:06 +0000)]
Bug 4548: Update for Portuguese language (pt)

18 years agoMissing variable declarations
Niklas Laxström [Tue, 10 Jan 2006 18:44:39 +0000 (18:44 +0000)]
Missing variable declarations

18 years agoMoving image and category detection
Magnus Manske [Tue, 10 Jan 2006 18:41:23 +0000 (18:41 +0000)]
Moving image and category detection

18 years agocount ( a ) , count ( a,b) , count (a,b,c) -> count++, faster smoother!!!
Domas Mituzas [Tue, 10 Jan 2006 17:56:59 +0000 (17:56 +0000)]
count ( a ) , count ( a,b) , count (a,b,c) -> count++, faster smoother!!!

18 years agoAlso remove the global from old place
Niklas Laxström [Tue, 10 Jan 2006 17:46:23 +0000 (17:46 +0000)]
Also remove the global from old place

18 years ago* Fixed fatal parsing error
Ævar Arnfjörð Bjarmason [Tue, 10 Jan 2006 17:38:16 +0000 (17:38 +0000)]
* Fixed fatal parsing error

18 years agoSecond attempt at (partially) moving to Wiki.php; tested this time, worksForMe
Magnus Manske [Tue, 10 Jan 2006 17:34:04 +0000 (17:34 +0000)]
Second attempt at (partially) moving to Wiki.php; tested this time, worksForMe

18 years ago* If you're using a global, remember the global thingy...
Ævar Arnfjörð Bjarmason [Tue, 10 Jan 2006 16:19:32 +0000 (16:19 +0000)]
* If you're using a global, remember the global thingy...

18 years agoNo more globals here :-)
Magnus Manske [Tue, 10 Jan 2006 15:45:37 +0000 (15:45 +0000)]
No more globals here :-)

18 years agomini-fix
Magnus Manske [Tue, 10 Jan 2006 15:40:49 +0000 (15:40 +0000)]
mini-fix

18 years agoA rewrite especially for Tim :-)
Magnus Manske [Tue, 10 Jan 2006 14:58:06 +0000 (14:58 +0000)]
A rewrite especially for Tim :-)
(just for the actions, though)

18 years agoMissing global fix
Magnus Manske [Tue, 10 Jan 2006 14:44:50 +0000 (14:44 +0000)]
Missing global fix

18 years agoEnforce $wgSVGMaxSize when rendering, even for SVGs with a very large source size...
Tim Starling [Tue, 10 Jan 2006 14:13:40 +0000 (14:13 +0000)]
Enforce $wgSVGMaxSize when rendering, even for SVGs with a very large source size. This is necessary to limit server memory usage.

18 years agoNew toy: Automatic database upgrades (deactivated by default)
Magnus Manske [Tue, 10 Jan 2006 12:53:43 +0000 (12:53 +0000)]
New toy: Automatic database upgrades (deactivated by default)
Can create/upgrade database tables for MediaWiki and extensions based on internal version management.
For HOWTO see the beginning of include/Upgrader.php

18 years agoMoved wgAmericanDate check to date() from dateFormat() where it broke default time...
Niklas Laxström [Tue, 10 Jan 2006 12:22:58 +0000 (12:22 +0000)]
Moved wgAmericanDate check to date() from dateFormat() where it broke default time preference for other languages

18 years agoMore fixes to Fr
Niklas Laxström [Tue, 10 Jan 2006 11:51:22 +0000 (11:51 +0000)]
More fixes to Fr

18 years agoSimple script to initialise external storage
Tim Starling [Tue, 10 Jan 2006 11:50:10 +0000 (11:50 +0000)]
Simple script to initialise external storage

18 years agomiliseconds...
Domas Mituzas [Tue, 10 Jan 2006 10:59:09 +0000 (10:59 +0000)]
miliseconds...
* Do not check master lag
* check just thread counts on SHOW STATUS, less bits on wire, less rows to handle for php

18 years agodot ('.') is not a valid thousands separator in lithuanian language
Andrius R [Tue, 10 Jan 2006 06:27:24 +0000 (06:27 +0000)]
dot ('.') is not a valid thousands separator in lithuanian language

18 years ago* Performance hack for domas: Only call the mb_ functions or do the expensive
Ævar Arnfjörð Bjarmason [Tue, 10 Jan 2006 00:21:27 +0000 (00:21 +0000)]
* Performance hack for domas: Only call the mb_ functions or do the expensive
  table lookups if we're dealing with a multibyte string, otherwise call
  strtolower(), ucfirst() and friends

18 years agocheck function_exists() once, do nothing if not exists...
Domas Mituzas [Tue, 10 Jan 2006 00:07:01 +0000 (00:07 +0000)]
check function_exists() once, do nothing if not exists...