Commit graph

130 commits

Author SHA1 Message Date
Brion Vibber
b603401c08 More doc comment fiddling 2004-10-28 06:05:22 +00:00
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
73a7c1fb71 Kludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards-compatible with PHPTAL 0.7.0's version 2004-10-23 07:37:48 +00:00
Brion Vibber
89c3ffd225 Validate input 2004-10-14 08:38:06 +00:00
Brion Vibber
41150bf76d fix bug 439: protected pages should not display a "move" link. 2004-10-10 13:41:09 +00:00
Brion Vibber
8bc18f9046 fix for bug 433: Title attribute on undelete button wrong 2004-10-10 13:17:56 +00:00
Evan Prodromou
9193b26923 Fixed some tab bogosity and took out a couple of debug printf
statements.
2004-10-08 22:31:45 +00:00
Evan Prodromou
3f39990075 Fixed problems with hiding certain links (portal, currentevents,
disclaimers). Corrected help text in Language.php -- it said to set
the values to '', but the code used '-'. Fixed Skin.php so it checks
for '-' for disclaimers. Also, fixed SkinPHPTal.php so it checks for
'-' anywhere it can show up -- in buildNavigationUrls and buildNavUrls.
2004-10-08 22:00:51 +00:00
Brion Vibber
f7c5fed405 Remove some unnecessary PHPTAL 1 stub bits 2004-09-28 22:16:06 +00:00
Brion Vibber
852eec51ed PHPTAL 1.0/PHP 5 fix: missing 'viewcount' sometimes. 2004-09-27 03:10:28 +00:00
Brion Vibber
efaa653426 * Hacky fix for PHPTAL 0.7 bug to be consistent with PHPTAL 1.0 (${foo} interpolations not escaped)
* Switch usercss & userjs bits due to above; SkinPHPTal now sets them _with_ the CDATA markers, as PHPTAL seems unwilling to recognize XML tags with tal: bits on them inside a CDATA section in the template (though oddly enough it interpreted the ${bits} just fine!)
2004-09-27 03:05:20 +00:00
Brion Vibber
e2a9e9fbd8 More fixes for PHPTAL 1.0 on PHP5. Apparently it's a bug in PHPTAl 0.7 that
substitutions with ${name} are not HTML-escaped... Replaced various inline
bits with tal:content or tal:replace using the 'structure' keyword to do
this in a compatible way, but some bits may be remaining.

Also changed some uses to tal:attributes, and took the htmlspecialchars()
off of the settings in SkinPHPTal to let them get escaped normally.
The main page logo link is currently bitten by this as i18n:attributes
and tal:attributes can't be used together on 0.7.0; this needs tweaking.

PHPTAL 1.0 currently doesn't escape the tal:attributes bits, but this seems
to be a simple bug and should be fixed soon, I hope.
2004-09-27 01:30:27 +00:00
Zheng Zhu
ad85441185 Use wfMsgForContent() when making links 2004-09-26 23:45:18 +00:00
Jens Frank
87c7a6b335 Avoid PHP warning about undefined constant 2004-09-26 09:51:41 +00:00
Jens Frank
734caee098 BUG#419 Added global variable that defines the elements of the navigation sidebar.
Made MonoBook use the global sidebar definition
2004-09-26 09:45:35 +00:00
Brion Vibber
4653c87d0d Start on compatibility with PHPTAL 1.0 (on PHP5).
Currently requires that PHPTAL 1.0.0d2 be separately installed and hacked up a little, and $wgUsePHPTal manually enabled.
2004-09-26 01:56:43 +00:00
Zheng Zhu
eb267e2492 some more UI related fix 2004-09-26 01:50:26 +00:00
Zheng Zhu
14052ee5e5 Second batch of files modified to replace selected wgLang with wgContLang 2004-09-24 16:24:43 +00:00
Antoine Musso
d2ff5b147b fix tab 2004-09-21 19:47:31 +00:00
Antoine Musso
49b2be3b9f Fix http://bugzilla.wikipedia.org/show_bug.cgi?id=511 . Stop showing whatlinkshere and relatedchanges links for special pages. 2004-09-20 17:42:12 +00:00
Antoine Musso
83bfa5a935 Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=502 . Implement allow quickbar suppression in PHPTal skins, error pages suppress quickbars 2004-09-17 16:31:38 +00:00
Antoine Musso
a0d30b1e03 Use the new skin tree hierarchy 2004-09-05 03:25:58 +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
710af95e2e Fix bug http://bugzilla.wikipedia.org/show_bug.cgi?id=270
PHPTal skins would not let an user watch a non existent page.
2004-09-03 15:10:05 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Jens Frank
a457c379ea BUG#26 Set setSquidMaxage to 0 if the user has new messages. Don't cache page. 2004-09-02 05:59:33 +00:00
Antoine Musso
55d0916192 moving templates from /templates/ to /skins/ . xhtml_slim.pt is now MonoBook.pt, xhtml_minimal.pt is now Chick.pt, xhtml_slim_wikimediawiki.pt is now WikimediaWiki.pt 2004-09-02 02:15:54 +00:00
Antoine Musso
fd758aaa3c Big change to the skin system. Php files are now in ./skins/ . Templates and stylesheets will be migrated there as well later. The main idea is to let users add new skins easily without hacking mediawiki 2004-09-02 01:29:18 +00:00
Antoine Musso
0a74b5cf65 do not indent code inside the "if( defined( 'MEDIAWIKI' ) ) { }" block 2004-09-02 00:01:19 +00:00
Antoine Musso
1c4e91ea5c killing some double quotes 2004-09-01 23:34:28 +00:00
Arne Heizmann
f621158326 NP_WIKIPEDIA => NP_PROJECT, and code readability stuff 2004-08-28 17:53:12 +00:00
Brion Vibber
ff65b79f61 Don't display Upload link in Monobook sidebar if uploading is disabled. 2004-08-28 00:38:59 +00:00
Arne Heizmann
af38689651 New PHPtal-based skin 'Chick'. Designed for PDAs and other low-resolution devices.
See non-whitespace-changing patch at http://bugzilla.wikipedia.org/show_bug.cgi?id=49
2004-08-14 22:38:46 +00:00
Tim Starling
cd2e8170d2 Ahh, so that's what that does 2004-08-12 06:54:58 +00:00
Brion Vibber
c39794c8e6 Fix the fix for [ 984629 ] "Retreived from..." printfooter division missing in Monobook 2004-08-09 00:22:43 +00:00
Magnus Manske
93e301f751 This fixes bug 984629, but gives a double footer 2004-08-08 14:03:27 +00:00
Brion Vibber
b11ce40f4b Close include hole on some insecure PHP configurations 2004-08-06 22:02:11 +00:00
Magnus Manske
77f3ed0506 Article validation code (bug fixes) 2004-08-01 09:47:50 +00:00
Magnus Manske
df9be6ec21 Article validation code (bug fixes) 2004-07-31 21:23:14 +00:00
Brion Vibber
a5a174cfe0 Mark unwatch button as ca-unwatch rather than ca-watch to fix the tooltip.
* [ 993438 ] Wrong hint for "unwatch" button
2004-07-29 02:18:27 +00:00
Magnus Manske
bc08cee26e Article validation code 2004-07-23 20:58:43 +00:00
Magnus Manske
bfef9d4f81 Article validation code 2004-07-22 21:04:33 +00:00
Magnus Manske
30a7263ec8 Article validation code (tab fix) 2004-07-21 17:37:34 +00:00
Magnus Manske
1b8983ea76 Article validation code (as a tab now) 2004-07-20 20:48:19 +00:00
Gabriel Wicke
f0d625a467 reorder params for css/js to end in 's' to avoid being counted as page in webalizer 2004-07-16 17:23:56 +00:00
Arne Heizmann
a90a4fa9c1 Little bugfix in user CSS preview 2004-07-16 15:25:02 +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
Evan Prodromou
3febd62f21 Added credits item to PHP-TAL skin. 2004-06-29 05:50:48 +00:00
Tim Starling
8139bda498 moving new history copyright text to the bottom of revisions, making '-' the default text 2004-06-21 07:55:16 +00:00
Antoine Musso
5928a9238b EXPERIMENTAL: Stop requiring skin classes we do not use. Save about 210KB memory for a monobook user, should save more when user use standard. 2004-06-17 16:31:57 +00:00