Robin Pepermans
7c624542f0
(bug 6100; follow-up to r91315) Being bold and removing $wgBetterDirectionality (and dependent wfUILang) in core, as most or all work is finished.
...
Also:
* Introduce classes mw-float-end, mw-float-start so we don't have to use inline css depending on wfUILang()/$wgLang (see HistoryPage and SpecialFileDuplicateSearch)
* Add direction mark to protection log
* Remove specialpageattributes as it is obsoleted by this commit (also fixes bug 28572)
* Add two direction marks in wfSpecialList, which makes ltr links on rtl wiki (and vice versa) display nicely as well (only on those special pages however)
* Revert r91340 partially: use mw-content-ltr/rtl class anyway in shared.css. Both ways have their [dis]advantages...
* Set the direction of input fields by default to the content language direction (except buttons etc.) in shared.css
2011-07-06 02:26:06 +00:00
Sam Reed
77b42e01ff
Followup r89617, r91428 call $pager->doQuery explicitally so we get a set result object, from which, we can then get a row count
...
Expliticly marking doQuery() in pager as public
2011-07-05 00:09:09 +00:00
Robin Pepermans
9b9dc2fdfd
Simpler code
2011-06-30 15:20:57 +00:00
Robin Pepermans
9077baef30
Follow-up to r90265: directionality improvements as part of bug 6100 (under $wgBetterDirectionality):
...
* Correct directionality when viewing diffs
* Correct arrows for Pager
* CSS/JS pages always 'en' (LTR)
* Messages on Special:Allmessages have lang and dir attributes based on the selected language
2011-06-18 13:12:52 +00:00
Sam Reed
50d5b074d0
And some more parameter documentation!!
2011-05-28 16:31:00 +00:00
Alexandre Emsenhuber
3bc50f6984
Use WebRequest::getQueryValues() to get all query strings parameters instead of $_GET
2011-05-26 16:18:35 +00:00
Leo Koppelkamm
9aa24fcb9f
Switching arrows in Special:FileList to match the usual behaviour in MW. Bug 18962
2011-05-02 19:56:28 +00:00
Happy-melon
229b5aa755
(bug 19942) remove deprecated HTML attributes (cellpadding, align, valign) from TablePager.
2011-03-30 17:37:25 +00:00
Happy-melon
f050fabd6b
Complete the trinity of blocking frontend interfaces by rewriting SpecialIpblocklist:
...
* Move and rename to SpecialBlockList
* Use an HTMLForm in GET mode for the options form
* Use TablePager to organise the results more nicely
* Standardise the filtration for IPs and IP ranges, so looking at blocks for a range will now also show rangeblocks which contain the range
* General tidy up
2011-03-14 16:09:44 +00:00
Raimond Spekking
5e74a2007c
Follow-up r82391 per Nikerabbit's CR: Fix it in a better way
2011-02-18 15:14:08 +00:00
Raimond Spekking
a8c76bc86c
Don't clutter the HTML source with useless class=""
2011-02-18 11:20:49 +00:00
Sam Reed
e4a9c89be0
Fixup fixme on r76844
...
Only "known issue", is the bottom limit thing posts, and won't override the top one, if it's set one in the URL, which is a PITA. 2 clicks does it. Hopefully this can be fixed, and uncommented when VVV sorts out our queryparameters? :)
2010-12-14 18:17:42 +00:00
Sam Reed
2ce4fc0cb5
Return type documentation
2010-12-03 01:43:23 +00:00
Sam Reed
5bb5747674
Variablise $navigationBar
...
Add a couple of braces
2010-11-16 14:06:21 +00:00
Max Semenik
c2db336916
Fixed E_STRICT from r71059
2010-08-15 07:03:59 +00:00
Ryan Kaldari
1a45345aa8
fix to handle case of mIndexField including a table prefix
2010-08-14 01:57:05 +00:00
Raimond Spekking
ad375dddaf
Add the current limit (manually changed by a user) from the query string to avoid that the limit is lost after clicking Go next time
2010-06-17 07:32:39 +00:00
Aryeh Gregor
74a21f3bd1
Remove most named character references from output
...
Recommit of r66254 to trunk. This was just
find extensions phase3 -iname '*.php' \! -iname '*.i18n.php' \! -iname 'Messages*.php' \! -iname '*_Messages.php' -exec sed -i 's/ /\ /g;s/—/―/g;s/•/•/g;s/á/á/g;s/´/´/g;s/à/à/g;s/α/α/g;s/ä/ä/g;s/ç/ç/g;s/©/©/g;s/↓/↓/g;s/°/°/g;s/é/é/g;s/ê/ê/g;s/ë/ë/g;s/è/è/g;s/€/€/g;s/↔//g;s/…/…/g;s/í/í/g;s/ì/ì/g;s/←/←/g;s/“/“/g;s/·/·/g;s/−/−/g;s/–/–/g;s/ó/ó/g;s/ô/ô/g;s/œ/œ/g;s/ò/ò/g;s/õ/õ/g;s/ö/ö/g;s/£/£/g;s/′/′/g;s/″/″/g;s/»/»/g;s/→/→/g;s/”/”/g;s/Σ/Σ/g;s/×/×/g;s/ú/ú/g;s/↑/↑/g;s/ü/ü/g;s/¥/¥/g' {} +
followed by reading over every single line of the resulting diff and
fixing a whole bunch of false positives. The reason for this change is
given in <http://lists.wikimedia.org/pipermail/wikitech-l/2010-April/047617.html >.
I cleared it with Tim and Brion on IRC before committing. It might
cause a few problems, but I tried to be careful; please report any
issues.
I skipped all messages files. I plan to make a follow-up commit that
alters wfMsgExt() with 'escapenoentities' to sanitize all the entities.
That way, the only messages that will be problems will be ones that
output raw HTML, and we want to get rid of those anyway.
This should get rid of all named entities everywhere except messages. I
skipped a few things like   that I noticed in manual inspection,
because they weren't well-formed XML anyway.
Also, to everyone who uses non-breaking spaces when they could use a
normal space, or nothing at all, or CSS padding: I still hate you. Die.
2010-05-30 17:33:59 +00:00
Alexandre Emsenhuber
a85002625a
* Fixed some doxygen warnings
...
* Documented a bit
2010-02-28 15:43:51 +00:00
Tim Starling
688edac45b
For r58153: in HistoryPage, removed the user permissions checks for deleted revision filtering. Added a tag to the SQL filtered SQL query so that sysadmins can easily find the relevant code if there is a problem.
2010-02-09 01:17:01 +00:00
Siebrand Mazeland
e8a65f9e25
Update break notation to self enclosed and properly spaced
2009-11-14 20:59:15 +00:00
Brion Vibber
7dcde84226
Revert r57208 - unexpected message format type change from plaintext to raw-HTML
2009-10-01 19:36:39 +00:00
Raimond Spekking
c42e248ef2
Fix double escaping to avoid showing literal • when [[MediaWiki:Pipe-separator]] is set to this character
...
All message parameters are previously escaped.
2009-10-01 11:24:56 +00:00
Siebrand Mazeland
32393d65b2
Revert functional change from r56594. That broke more than it tried to fix somehow.
2009-09-18 12:49:27 +00:00
Siebrand Mazeland
71dd8a0fae
* use wfMsgExt with escapenoentities instead of wfMsgHtml (line 679)
...
* break long lists of parameters
* remove trailing whitespace
2009-09-18 12:43:55 +00:00
Andrew Garrett
6be79efdd1
Add number formatting for numeric limits, regression in r55692
2009-09-08 23:32:56 +00:00
Happy-melon
255e855e34
Reimplement r55685, r55686, r55687, with correct parsing of the associative array. Also add message description to MessagesQqq as requested at r55685.
2009-08-31 11:30:50 +00:00
Niklas Laxström
bae3947a0f
Revert r55685, r55686 and r55687 for now. Limits not working.
2009-08-31 06:54:52 +00:00
Happy-melon
d9e0154b62
* Allow IndexPager->mLimitsShown to be an associative array of limit => text-to-display-in-limit-form pairs.
...
* Use this to add an "all" value to the limit form in Special:AllMessages. In reality, "all" is only 5000, but this is plenty more than most wikis should have.
2009-08-30 21:50:10 +00:00
Brion Vibber
71432fb487
Pet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)
...
Introduced helpers:
$lang->getDir() returns 'ltr' or 'rtl' for HTML 'dir' attrib
$lang->alignStart() returns 'left' or 'right' for HTML 'align' attrib or CSS 'text-align' property
$lang->alignEnd() returns 'right' or 'left'
And cleaned up a couple arrays of icons to just reverse the order of items rather than repeating the items twice for each possibility.
2009-08-22 01:24:04 +00:00
Tim Starling
3b4e961c47
* Renamed PageHistory to HistoryPage. Brion gave me permission to do this a couple of years ago, I thought it was about time. Provides naming consistency with ImagePage, RawPage, etc.
...
* Moved historyLine(), beginHistoryList(), endHistoryList() and related helper functions to the pager class.
* Renamed HistoryPage member variables, removed "m" prefix.
* Added declaration for IndexPager::$mIsFirst
2009-08-17 05:09:36 +00:00
Alexandre Emsenhuber
4eea7755ae
* (bug 16009) Limit selection forms based on Pager now links to the correct page when using long urls
2009-07-23 20:18:34 +00:00
Niklas Laxström
35dff87821
Reimplement r49941 as an overridable method, as suggested by Tim (hiding navigation bar when all results are shown)
2009-06-20 06:41:59 +00:00
Tim Starling
f55a4c219a
Revert r49941 and r50013: hackish attempted use of mIsFirst before initialisation.
2009-06-04 06:17:03 +00:00
Niklas Laxström
d3b61fea7c
Escaping fixes
2009-05-22 09:35:48 +00:00
Roan Kattouw
ebb8e31b19
(bug 18620) Fix some escaping issues in TablePager::formatRow() and set $mCurrentRow earlier. Patch by Happy-Melon
2009-04-29 15:59:59 +00:00
Niklas Laxström
695ec8ea93
Fix for r49939: hide navigation links in higher level
2009-04-27 11:17:46 +00:00
Tim Starling
b986875773
* Escape attribute values
...
* Document getRowClass()
2009-04-01 08:51:54 +00:00
Roan Kattouw
4e96c0efad
Update docs in Pager.php for join_conds
2009-03-31 15:46:34 +00:00
Siebrand Mazeland
1093d39768
* remove forgotten case of hard coded pipe separator in Pager
...
* fix bug in GlobalFunctions.php introduced in r47028. pipeList() needs to be fed an array.
2009-02-09 14:31:48 +00:00
Siebrand Mazeland
a130b5b8fa
* Update message 'pipe-separator' to have leading and trailing space for English and Occitan, to be able to remove some hard coded spaces
...
* Take out some hard coded pipe characters. Replace by message or Language::pipeList
* Take out a hard coded comma list SpecialIpblocklist.php. Replace by Language::commaList
2009-02-09 09:13:30 +00:00
Andrew Garrett
2454a53583
Tweak variable name to avoid confusion.
2009-01-28 23:55:00 +00:00
Andrew Garrett
86191325b3
Allow individual TablePager rows to be styled with the internal method getRowClass, called in formatRow.
2009-01-28 20:08:46 +00:00
Aaron Schulz
7d249deb11
'known' still needed for title attrib
2009-01-28 17:45:51 +00:00
Aaron Schulz
4717704190
(bug 17198) Remove css from next/prev, 20/50/100 links and such
2009-01-28 17:34:44 +00:00
Aryeh Gregor
4299d27956
Use HTML5 rel attributes for some links
...
http://dev.w3.org/html5/spec/#linkTypes
Probably doesn't do much, but looks cool. :)
2009-01-22 00:11:23 +00:00
Bryan Tong Minh
1489500d1d
Need setOffset and setLimit as well
2008-10-29 19:21:21 +00:00
Bryan Tong Minh
666ab2c774
Add IndexPager::getResult so that other code (API) can access the result.
2008-10-29 18:15:39 +00:00
Aaron Schulz
e1b225a365
(bug 16009) Remove extra title param
2008-10-17 00:46:50 +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