Commit graph

37 commits

Author SHA1 Message Date
Hoo man
8ffbb077b3 Use __DIR__ instead of dirname( __FILE__ )
Removed left over uses of dirname( __FILE__ ) to __DIR__, even in comments.
Running the PHP version test in maintenance/Maintenance.php earlier, so that
we no longer have to stay PHP < 5.3 compatible in there.

Change-Id: I5a00bd5c6af44b7f826c4e5576a7b3de7b5026d8
2012-08-27 23:58:28 +02:00
awjrichards
c29fd59775 Big oops - merged to wrong branch.
Revert "Revert to arbitrarily old point before initial remote branch creation to help clean up"

This reverts commit ee0d3d330f
2012-06-05 22:58:54 +00:00
awjrichards
ee0d3d330f Revert to arbitrarily old point before initial remote branch creation to help clean up
Change-Id: I41a3d1e55d3ea9dffa42451237fe065f9334361d
2012-06-02 08:43:04 -07:00
Alexandre Emsenhuber
cf5f055707 Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: If00cc0c63c49e441de56bc7b55d764d4a9a53ae8
2012-06-04 15:36:23 +02:00
Derk-Jan Hartman
c78f613b38 Bug 27619: Remove the option to show broken links as: link?
Being bold here, but otherwise it will still be there in 2016
2012-02-19 13:06:18 +00:00
Robin Pepermans
70ea9d6098 * Per Aaron on r96261, use string 'flip' instead of boolean
* Apparently @noflip should only be set once, otherwise it behaves differently
2011-09-10 23:51:08 +00:00
Sam Reed
f77f9ebab8 Simplify some contexts 2011-09-10 22:09:31 +00:00
Daniel Friesen
e33f0f8907 Kill off $wg{Request,User,Lang,Output} usage within skins/ and redundant $this->skin local vars. 2011-09-09 15:41:30 +00:00
Robin Pepermans
488d44c865 Fix r96261: don't add important if 'none', so it doesn't break underlining on hover 2011-09-04 22:05:56 +00:00
Robin Pepermans
33293c9b48 * Mark underline css as !important. It should override other css (such as the css added in r91432) if the user specifically selected that option.
* Fix css flipping: for Simple, it still depended on the content language (however, no css actually needs flipping there). For Standard/CologneBlue, I re-added flipping even though it's not needed there either. Just in case css is added that does need flipping, so it is future-proof :). Consequently, I added noflip to the existing css.
* For this flipping I added a parameter to addInlineStyle(), which I assume to be useful in other cases as well
2011-09-04 21:50:02 +00:00
Sam Reed
2d106cb050 Partial revert to r94024
Only 2 lines in Vector needed reverting, not the whole revision
2011-08-06 12:18:15 +00:00
Brion Vibber
868f61e63b Revert r89123 -- caused bug 30259 (switched correct calls with incorrect calls because of some interpretation of 'deprecation', causing invalid HTML output and breakage of watch tab on edit page) 2011-08-06 12:06:11 +00:00
Sam Reed
b02f506c34 Fix up a couple of deprecated calls
Documentation
2011-05-29 18:32:30 +00:00
Derk-Jan Hartman
27680a2d84 Finish porting the Simple skin to resourceloader.
* quickbar CSS removed, since simple doesn't even have #quickbar.
* default of line-trough removed, since this is already present in the skin CSS.
Fixes part of bug 26649
2011-01-22 21:16:34 +00:00
Derk-Jan Hartman
f47d66d2d5 Convert simple skin to Resource loader.
I removed all of the useroptions generators that were dupe with resourceloaderuseroptions.
The 'highlightbroken' option differs from what is in resourceloaderuseroptions and still remains to be ported.

Bugzilla #26649
2011-01-13 11:28:35 +00:00
Derk-Jan Hartman
ccce9d0568 Make sure that simple skin has the shared CSS and print CSS.
Simple was the last skin not to support the shared elements.
2010-06-25 14:40:45 +00:00
Tim Starling
c5fc589257 Replaced all instances of <<<END (which breaks vim syntax highlighting), with a type-specific end token. For HTML and SQL, this causes vim to highlight the embedded text with the HTML or SQL file type plugins respectively, which is very neat. 2009-12-07 08:51:52 +00:00
Alexandre Emsenhuber
0b5389d98d * (bug 20631) Preview of personal JavaScript and CSS pages now works again
* introduced SkinTemplate::$useHeadElement as switch for backward compatibility for extension skins using the old way of generating the <head> element:
** false (default): no change from previous version
** true: <head> specific items set in SkinTemplate::outputPage() are no longer generated (avoid double execution of some functions) and the result of OutputPage::headElement() is stored in the 'headelement' item
* updated all core skin to use this new method, some extensions using MonoBookTemplate but not extending SkinMonoBook (or for other core skins) will need to set $useHeadElement to true to work properly though
* Made Skin::userCanPreview() public since it's needed in OutputPage::getHeadScripts()
* Pass the Skin object from OutputPage::headElement() to OutputPage::getHeadScripts() rather than getting it from $wgUser
2009-09-22 16:52:40 +00:00
Aryeh Gregor
006b47f891 Fix fatal from r53504
Apparently a) var $foo = $bar = 'baz' doesn't work in PHP, and b) I
should try viewing pages with action=purge to make sure there aren't
actually any fatals.
2009-07-20 00:52:14 +00:00
Aryeh Gregor
0df8b0afcd Use member variable defaults for SkinTemplate 2009-07-20 00:33:23 +00:00
Andrew Garrett
e8aa289e48 Fix prefsectiontip styles (class renamed to htmlform-tip) 2009-04-24 08:47:56 +00:00
Chad Horohoe
a8566e483c Use parent instead of SkinTemplate explicitly 2009-04-07 18:12:48 +00:00
Jack Phoenix
593c5c427e further cleanup to skins. instead of referring the user to docs/skin.txt, why not to include the skin descriptions on the actual files? :) 2009-03-29 15:29:34 +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
Brion Vibber
6321c03ad5 * (bug 14954) Fix regression in Modern and Simple skins
Earlier r38139 patched up Modern, but didn't address Simple.
2008-07-28 19:09:38 +00:00
Aryeh Gregor
bcf096cfcc Also omit rtl.css when appropriate. Would be good to do this for main.css too for Myskin (although of course that one should be included by default, not excluded). 2008-06-13 01:04:10 +00:00
Alexandre Emsenhuber
087a9f70c5 WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>

Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage

One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
Aryeh Gregor
77928b644a Uh, I checked in the wrong changed line. :D Correction for last commit: "This needs to be protected, actually, so that inheritance works properly." 2008-05-06 14:57:14 +00:00
Aryeh Gregor
7abb882bef This needs to be protected, actually, so that inheritance works properly. 2008-05-06 14:52:30 +00:00
Alexandre Emsenhuber
675a2245dd Doc cleanup:
* Remove deprecated "@package MediaWiki" from comments
* Kill ending ?> tag in AdminSettings.sample
* remove uneeded comment in SpecialPage.php
* update some links to docs/skin.txt instead of skin.txt
2008-03-18 16:56:52 +00:00
Aryeh Gregor
a15c419b3d Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) 2007-06-29 01:19:14 +00:00
Nick Jenkins
baaee13afc Prevent some unnecessary lstat system calls, generated by include or require directives.
This can be done either by:
* Using explicit full paths, using the $IP global for the installation directory full path, and then working down the tree from there.
* Using explicit full paths, using the "dirname(__FILE__)" directive to get a full directory path for the includer file. 
* Occasionally removing the line altogether, and then for some files the inclusion is handled by the autoloader.

For example, if the "extensions/wikihiero/wh_main.php" file does an include or require on "wh_list.php", then PHP does the following:
* tries to open "wiki/wh_list.php", and fails.
* tries to open "wiki/includes/wh_list.php", and fails.
* tries to open "wiki/languages/wh_list.php", and fails.
* tries to open "wiki/extensions/wikihiero/wh_list.php", and succeeds.

So in this example, the first 3 calls can be prevented if PHP is told where the file is.

Testing Method: On a Linux box, run these commands to attach strace to all the apache2 processes, and log their system calls to a temporary file, then generate some activity, and then stop the strace:
-----------------------------------
rm /tmp/strace-log.txt
strace -tt -o /tmp/strace-log.txt -p `pidof apache2 | sed 's/ / -p /g'` &
php maintenance/fuzz-tester.php --keep-passed-tests --include-binary --max-runtime=3 > /tmp/strace-tests.txt
killall -9 strace
grep "No such file or directory"  /tmp/strace-log.txt | sort -u
-----------------------------------

Any failed file stats will be marked with: "-1 ENOENT (No such file or directory)".

Also:
* Strict Standards: Undefined offset:  230 in includes/normal/UtfNormal.php on line 637
* Strict Standards: iconv() [<a href='function.iconv'>function.iconv</a>]: Detected an illegal character in input string in languages/Language.php on line 776
  [Note: Partial only - despite adding "//IGNORE", it still seems to be possible with some
         messed- up binary input to cause PHP 5.1.2's iconv() function to squeal like a stuck pig].
* Update one $fname variable (method belongs to HistoryBlobStub class).
2007-02-09 05:36:56 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Brion Vibber
266d41f165 * 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.
2006-01-14 02:49:43 +00:00
River Tarnell
148f068131 repair highlightbroken preferences option 2005-07-25 11:57:21 +00:00
River Tarnell
9f6c026c36 add missing image
link decoration fixes
2005-07-24 06:43:15 +00:00
River Tarnell
de8980828e new skin: Simple 2005-07-24 06:17:49 +00:00