Commit graph

667 commits

Author SHA1 Message Date
Danny B
8125067c8b * Added "Advanced search" link to the search form 2009-01-07 04:56:08 +00:00
Brion Vibber
533da56175 Revert r45432 "* Added "Advanced search" link to the search form"
+		  . '<a href="' . wfMsg ('searchaction') . '" rel="search">' . wfMsg ('powersearch-legend') . '</a></form>';
The crap is this?
2009-01-07 03:37:01 +00:00
Danny B
de116119f2 * Added "Advanced search" link to the search form 2009-01-06 02:50:24 +00:00
Brion Vibber
be7c1397f4 * (bug 16786) Restored "redundant" links recently removed from Classic sidebar
Reverted r44780, r44788
2008-12-31 21:31:20 +00:00
Jack Phoenix
50a22bc12b check that $wgArticle is an instance of the Article class in Skin::pageStats() per Brion's commit summary on r45204 2008-12-31 19:30:59 +00:00
Brion Vibber
e31938afb8 Revert r45189 "Escape entities in h1 title html" -- double-escaping 2008-12-31 17:02:23 +00:00
Brion Vibber
c6ee6a091b Revert r45038 "only call pageStats function in Skin::printFooter if $wgArticle is an object. this might not always be the case (tested with a custom skin extending the Skin class) and if so, a fatal error is shown on the page (tested with Special: pages) and footer won't be rendered"
Skin::pageStats() has checks meant to catch this already. If they're faulty, fix them there.
2008-12-30 21:34:25 +00:00
Aaron Schulz
4223b1c209 Escape entities in h1 title html 2008-12-30 16:09:11 +00:00
Aaron Schulz
d0aeaa55ff (Bug 12998) Weaken DISPLAYTITLE restictions (patch by rememberthedot@gmail.com) 2008-12-30 12:22:15 +00:00
Siebrand Mazeland
51e99feea4 Follow up on r44724 (Remove some less-useful redundant links from sidebar): remove bug reports link completely. 2008-12-27 14:33:26 +00:00
Jack Phoenix
770201b4e2 only call pageStats function in Skin::printFooter if $wgArticle is an object. this might not always be the case (tested with a custom skin extending the Skin class) and if so, a fatal error is shown on the page (tested with Special: pages) and footer won't be rendered 2008-12-25 18:47:42 +00:00
Niklas Laxström
e4f6c026a7 * Springle some parsemag to the sidebar and tagline per bug 16669 2008-12-19 08:54:51 +00:00
Aaron Schulz
98e15bf9ad Streamline links a bit 2008-12-18 23:09:49 +00:00
Chad Horohoe
be374a912a War on wfElement() and friends. Call the Xml members directly, rather than using old wrappers. 2008-12-14 19:14:21 +00:00
Brion Vibber
53a98ef3fb Revert part of r44296 "*Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway" and r44302 "Tweak r44296: use autoloader if it is set there".
Unless there's some really huge overriding reason to do this, there's no point poking around in the autoloader's guts to try to outsmart it. Just let it take a few nanoseconds to check its array and don't add yourself a dependency on its implementation details.
If there *is* some really huge overriding reason to complicate the code, please provide some data supporting it.
2008-12-10 23:39:02 +00:00
Brion Vibber
5fd0427041 Revert r44292 "Assign by ref to make sure cache fields carry over"
This isn't PHP 4; the object's fields are changed on the object itself just fine. Unless people are changing the global variable $wgTitle to something different this should be fine. If there is a problem that this fixes, that's probably a problem itself and should be fixed in a cleaner way :D
2008-12-10 23:29:43 +00:00
Brion Vibber
95211ac850 Revert r44271 "(bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com')"
Behavior seems a bit hard to predict, as far as what's going to go in the header and what in the browser window etc. Pulling it back for further testing and discussion.
2008-12-10 23:21:28 +00:00
Aaron Schulz
88d407ed9e Tweak r44296: use autoloader if it is set there 2008-12-08 11:48:08 +00:00
Aaron Schulz
2f584f68a9 *Skip autoloading of skin, always does inefficient strtolower() stuff and fails (returns false) anyway
*Add wfDebug() call on class load failure
2008-12-08 00:35:59 +00:00
Aaron Schulz
fca45856cd Assign by ref to make sure cache fields carry over 2008-12-07 21:57:33 +00:00
Aaron Schulz
af10d34286 (bug 12998) Weaken DISPLAYTITLE restictions (patch by 'rememberthedot@gmail.com') 2008-12-06 18:00:17 +00:00
Ilmari Karonen
34fb6297cd Step 2 in NS_IMAGE -> NS_FILE transition (bug 44) (WARNING: huge commit).
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
2008-12-01 17:14:30 +00:00
Andrew Garrett
6ef3fc4a2f Revert "Starter for a re-jig of hit counting (in a per-day table)."
That was supposed to be in a branch.
2008-11-19 12:05:33 +00:00
Andrew Garrett
1c2f4514f8 Starter for a re-jig of hit counting (in a per-day table).
Needs configurability, purty graphs, and some cleanup in the back-end.
2008-11-19 12:01:43 +00:00
Brion Vibber
add48e7f15 Revert r43592 "Pass the user object in MakeGlobalVariablesScript in case some variables are user-dependent."
As a UI thingy, $wgUser will be the only relevant user object here; there's no circumstance in which we might pass some other user object. No reason to pass it to hooks just on the off chance that they might use it, then...
2008-11-17 20:04:50 +00:00
Chad Horohoe
0c890862b2 Pass the user object in MakeGlobalVariablesScript in case some variables are user-dependent. 2008-11-17 02:33:29 +00:00
Aaron Schulz
59c45b5cbe Revert r43329, r43330 due to said performance issues 2008-11-13 08:15:23 +00:00
Victor Vasiliev
259d03f217 Forgot to commit Skin.php part 2008-11-09 18:23:51 +00:00
Aaron Schulz
c0099cc41e Fix for r43295: check if $wgArticle is set 2008-11-08 18:30:04 +00:00
Alexandre Emsenhuber
04f84fe534 (bug 4362) [[MediaWiki:History copyright]] no more used with most recent revision when passing oldid parameter in the url 2008-11-08 16:09:37 +00:00
Aaron Schulz
e03787afd9 Make getTimestampFromId() need a title. Avoids some secondary lookups and orphans revs will be overlooked. 2008-10-30 10:04:30 +00:00
Tim Starling
1d897ce4ea In sortable tables:
* (bug 8063) Use the content language digit transform table.
* Don't recognise C-style hexadecimal notation as a number, that feature never actually worked.
* Be more forgiving about things that look like numbers but turn out not to be. Sort them stringwise.
* Optimised ts_resortTable by having it calculate the sort keys at the start, and then using a single trivial comparison function. There are potentially many more comparisons than rows. Observed factor of 2 speedup. 
* Use RegExp.test() instead of String.match() when a true/false value is desired, as recommended by the Mozilla reference
2008-10-28 08:07:00 +00:00
Chad Horohoe
71a5520ec8 Revert previous commit, breaks cache. 2008-10-21 00:26:28 +00:00
Chad Horohoe
0d901b87af (bug 2508) Don't show edit button if user is blocked, show 'viewsource' instead. 2008-10-21 00:04:33 +00:00
Brion Vibber
65bbc14783 * (bug 1306) 'Email user' link no longer shown on user page when emailing
is not available due to lack of confirmed address or disabled preference
2008-10-17 22:20:07 +00:00
Ilmari Karonen
261f958806 Switch order of apple-touch-icon and favicon links in HTML head section to work around a quirk in
Konqueror's handling of those links.  Should not affect other browsers in any way.
2008-10-15 21:51:21 +00:00
Aryeh Gregor
b5886b70b7 (bug 15928) Make special pages dropdown inline
There was a weird extra "|" at the end of lines in Nostalgia (probably other non-MonoBook skins too).  Upon investigation, I found that the special pages dropdown (which immediately followed that separator but on the next line) had a class="inline", which actually did nothing but whose intent was fairly obvious.  I removed the presentational class and just styled it using the id, so now the separator actually . . . separates.
2008-10-10 17:43:17 +00:00
Brion Vibber
37dded29d1 Revert r40953 '(bug 7509) Don't hardcode separation strings, make them configurable'
This seems to make code much uglier and harder to maintain -- there are a bajillion new calls to "wfMsgExt( 'pipe-separator' , 'escapenoentities' )" which is not trivial or easy to remember. This makes code uglier, harder to read, harder to maintain, and more prone to error.
2008-09-18 17:11:51 +00:00
Siebrand Mazeland
0057d58e09 (bug 7509) Don't hardcode separation strings, make them configurable
* Introduced message 'pipe-separator' to replace many occurrence of " | ". No changes made in skin "Nostalgia".
2008-09-17 09:41:51 +00:00
Alexandre Emsenhuber
f9da6c460b (bug 15543) fix for r38139: don't include $wgUser->mTouched and smaxage=0 in query strings of site CSS, but only to generated css (action=raw&gen=css). 2008-09-10 12:12:59 +00:00
Chad Horohoe
2d7f1d4ccc Bug 15514. Allow plaintext copyright notices if $wgCopyrightUrl is unset. 2008-09-10 02:43:46 +00:00
Brion Vibber
b81107905f * (bug 2889) MediaWiki:Print.css applies to the printable version
MediaWiki:Handheld.css and MediaWiki:Print.css now available (handheld only if $wgHandheldStyle is configured).
2008-09-04 03:13:55 +00:00
Alexandre Emsenhuber
177b1e264a Tweaks for skins:
* Moved SkinTemplate::addStyle() and related stuff to OutputPage so that it can be used non-SkinTemplate skins and avoid duplication with the actual OutputPage::addStyle() (the two functions have the same format).
* Non-SkinTemplate skins now also load their CSS with <link> tags instead of @import.
* Moved SkinTemplate::setupUserCss() to Skin.
* Merged action=raw&gen=(js|css) for SkinTemplate and non-SkinTemplate skins, renamed functions to Skin::generateUserJs() and Skin::generateUserStyleSheet() and dropped a lot of cascading call which is a bit incomprehensible.
2008-08-21 14:09:57 +00:00
Ilmari Karonen
3f8b2a112b Same for other skins, modify release note accordingly. 2008-08-21 07:42:43 +00:00
Aaron Schulz
c19b2dd229 use quickUserCan() 2008-08-20 19:26:43 +00:00
Alexandre Emsenhuber
c985f72800 Tweaks for Credits and Metadata:
* Put all functions into classed so that they can be autoloaded
* Marked all private methods as protected
* Article::getContributors() now returns UserArrayFromResult object
2008-08-18 19:21:55 +00:00
Aaron Schulz
fcf5e55f13 finish previous commit 2008-08-11 13:47:10 +00:00
Aaron Schulz
a910dd03ba Fix broken execution order. Setting the bodytext variable once already sent doesn't work. 2008-08-11 13:41:52 +00:00
Brion Vibber
28fa2922fc More style cleanup -- encapsulate the page name class along with the naemspace classes.
* Reduce code duplication
* Fix Modern class since my last commit
* Update offline skin for DumpHTML
2008-08-10 20:10:37 +00:00
Brion Vibber
f19dca7bba Cleanup for r39054 "Bug 15079, 'Add class="ns-talk" / "ns-subject" to <body>', also added ns-special for special pages."
* Avoid code duplication between Skin and SkinTemplate
* Encapsulate namespace class logic into one function
* Split giant huge line of ?:s with legible code :)
2008-08-10 19:48:30 +00:00