Chad Horohoe
44229b50e6
Fixed a bunch of silly instances of [^!=]==\s*(true|false)
2010-06-09 11:44:05 +00:00
Niklas Laxström
198f6b010a
Make getUserPermissionsErrors(Expensive) actually handle $result as documented
...
Fatal errors was caused by nesting the results one level too deep
2010-05-24 09:55:46 +00:00
Mark A. Hershberger
10f4ac0873
* Refactor super-long title function
...
* Add tests to achieve almost-complete coverage since I want to make sure my changes don't break thinks.
* Still need to write tests for checkPermissionHooks
* Tests could probably be cleaned up a lot.
2010-04-24 06:22:11 +00:00
Mark A. Hershberger
2f256321ac
typo
2010-04-24 01:14:13 +00:00
Mark A. Hershberger
ca614b8d08
cache the result of getTitleProtection to make testing easier
2010-04-24 00:23:57 +00:00
Mark A. Hershberger
9ff34bfddb
Don't rely on the extract and its side-effects when we can be explicit.
...
Also, we can do a simple boolean test rather than use is_array.
2010-04-23 19:36:37 +00:00
Mark A. Hershberger
d66c4228ad
Make sure a member var is declared.
2010-04-23 18:37:33 +00:00
Mark A. Hershberger
6fa19fc9ff
Remove code that looks like it came from Perl as it “works” (doesn't produce an error) but always evaluates to true.
...
$ php -r '$a = array();var_dump($a > 0);'
bool(true)
2010-04-23 17:29:17 +00:00
Tim Starling
48d9d6cb66
revert r64792
2010-04-09 12:57:34 +00:00
Tim Starling
3d90e2a880
Don't use $wgVariantArticlePath when the main language code is specified as a parameter to Title::getLocalURL(). Breakage observed on sr.wikipedia.org.
2010-04-09 12:41:25 +00:00
Alexandre Emsenhuber
6d42ca99c3
* Expand documentation a bit
...
* Cast to boolean, since those functions should return boolean
2010-04-03 21:07:57 +00:00
Alexandre Emsenhuber
5700f36de1
* (bug 22867) "View source" tab is now only displayed if there's source text
...
* Removed comment which is no longer true since the new localisation cache
2010-04-02 08:00:40 +00:00
Conrad Irwin
ca5a3684c8
Re-normalize titles after html entity decoding when necessary (bug 14952)
2010-03-28 03:10:10 +00:00
Roan Kattouw
ae43921eb6
(bug 22940) Namespace aliases to the main namespace don't work. Patch by quietust
2010-03-26 20:55:55 +00:00
Alexandre Emsenhuber
0400c49ea2
Fixed some doxygen warnings, changed "@return boolean: TRUE or FALSE" to "@return boolean" since I don't think that the boolean type can have other value than those two :)
2010-03-23 21:40:02 +00:00
Lisa Ridley
bc1023ac89
Updated documentation on Title, Wiki. Added @internal tag to Article, Title, Wiki indicating documentation review date for tracking purposes.
2010-03-15 23:22:50 +00:00
Raimond Spekking
df48236415
Use commaList() for better i18n
2010-03-13 16:50:36 +00:00
Happy-melon
79a0b29759
Layout tweak.
2010-03-13 16:09:23 +00:00
Aaron Schulz
8864d593d8
Made resetArticleID() reset redirect/length/latest ID fields
2010-03-11 05:32:04 +00:00
Aaron Schulz
ccd57dfa30
Made getLatestRevID() return an integer
2010-03-10 20:01:49 +00:00
Ilmari Karonen
8c5619f778
(bug 10183) allow users to add custom css/js for all skins via /common.css & /common.js user subpages
2010-03-05 22:42:53 +00:00
Max Semenik
e07022d5a0
Update doxygen a bit
2010-02-23 18:36:46 +00:00
Raimond Spekking
2c27120fcc
* Truncate summary of page moves in revision comment field to avoid broken multibyte characters
...
Example: http://de.wikipedia.org/w/index.php?title=Benutzer_Diskussion:Meister_Eiskalt/Babel3&action=history
2010-02-12 21:45:14 +00:00
Philip Tzou
d6b6766f3a
Follow up r60742, r60743, r60764, r60766, r61214, r61390. Split stripForSearch into wordSegmentation and normalizeForSearch. So the wordSegmentation could be called by search engines separately.
2010-02-02 15:09:01 +00:00
Mark A. Hershberger
faac46493e
follow up 61775 -- REVERT REVERT
2010-02-01 04:57:42 +00:00
Mark A. Hershberger
29ed343b4c
Fix parsertests so that they work even when server-side thumbnailing isn't configured.
2010-02-01 04:55:15 +00:00
Aryeh Gregor
f8879bfd2b
Refactor $wgEnforceHtmlIds code
...
Renamed setting to $wgExperimentalHtmlIds, off by default, and updated
the code to enforce the much laxer HTML5 rules. Still needs testing in
various browsers.
2010-01-29 21:44:01 +00:00
Mark A. Hershberger
add6090790
Make LTR wgLang do the right thing on RTL wgContLang wikis. See bug 6100 and dupes like bug 4047, bug 19228, bug 9137, etc.
2010-01-07 09:32:09 +00:00
Mark A. Hershberger
c568220e61
Refactor LanguageConversion so that title conversion isn't so flimsy. Pull MagicWord detection into Parser->doDoubleUnderscore() && remove ParserConvert.
2010-01-07 04:13:14 +00:00
Sam Reed
b6e0df246f
Attempt at normalistion of comparison styles - empty string on left and right hand side normalised to it being on the rhs
...
Before this change, there were (? being regex 0 or 1)
"" ===? 1
'' ===? 24
"" !==? 8
'' !==? 32
== "" 14
== '' 344
!= "" 9
!== "" 4
!= '' 151
!== '' 85
Rhs was the much more common, and the preferred style by many developers.. (Was a similar discussion in #mediawiki recently.. After that lolbugreport i think)
Where there is a string (non empty) on the lhs, and variable/method call on the rhs still need normalising
2010-01-06 19:59:42 +00:00
Tim Starling
6c02c03606
Remove unprefixed constant "CASCADE" due to risk of conflicts. It was added in r19097 but apparently was never used.
2009-12-30 06:44:52 +00:00
Alex Z
5977d6eb09
Fix for r60418, need to check whether the /destination/ file exists
...
locally, not the file at the current title
2009-12-26 22:04:37 +00:00
Alex Z
23e5963203
Per CR on r58079, add a permission check for 'reupload-shared' to
...
Title::isValidMoveOperation when moving a file over one on a shared repo
2009-12-26 21:56:05 +00:00
Alexandre Emsenhuber
b25db35904
Per Tim Starling, fix for r58008: use StringUtils::escapeRegexReplacement()
2009-12-17 14:45:52 +00:00
Alexandre Emsenhuber
6673d7e9c6
Whitespaces fixes:
...
* replaced tabs with spaces for Title members variables description so that it's the same for everybody
* removed trailing spaces
* removed/replaced tabs before spaces
2009-12-14 20:37:51 +00:00
Alexandre Emsenhuber
4d6a83149c
typo in comment
2009-12-14 13:41:32 +00:00
Chad Horohoe
a4e5e935b6
Mass convert NULL -> null. Left strings and comments alone, obviously.
2009-12-11 21:07:27 +00:00
Philip Tzou
303b2b745d
follow-up r59522, r59523, r59527, r59529, r59530.
...
1. Only use Accept-Language when 301 redirection happens. It won't call the parser, but it is the most case we need to ensure it uncacheable.
2. Merge addXVOHeader with addVaryHeader.
2009-11-29 06:47:51 +00:00
Bryan Tong Minh
6fec9d682b
Follow-up to r58633 and r58628 (lqt): Rename Title::getProtectionTypes to Title::getRestrictionTypes and fix the hook name.
2009-11-09 12:05:30 +00:00
Andrew Garrett
f6f5e90888
Enabling changes for r56828: some refactoring and code cleanup of the protection interface, including a new hook, generalisation to more restriction types than edit/move, and some other related changes.
2009-11-06 10:27:44 +00:00
Raimond Spekking
ce47c67697
i18n tweak: Use 'colon-separator' instead of hardcoded colon
2009-11-02 19:06:16 +00:00
Alexandre Emsenhuber
0969c9c2c4
* (bug 21234) Moving subpages of titles containing \\ now works properly
...
Per http://www.php.net/manual/en/function.preg-replace.php \ must be doubled in $replacement
2009-10-22 14:50:45 +00:00
Max Semenik
ae57ab1eec
(bug 20275) Fixed LIKE queries on SQLite backend
...
* All manually built LIKE queries in the core are replaced with a wrapper function Database::buildLike()
* This function automatically performs all escaping, so Database::escapeLike() is now almost never used
2009-10-21 19:53:03 +00:00
Chad Horohoe
6afbf91101
bug 9982. Encapsulate wgCanonicalNamespaceNames. Patch by Scott Colcord, with updates
2009-10-16 04:06:30 +00:00
Chad Horohoe
c319cc8968
(bug 13750) $wgCapitalLinks should be a per-namespace setting
2009-10-09 12:52:16 +00:00
Aaron Schulz
fa10eeeb70
Make sure countRevisionsBetween() returns an integer as doc says
2009-09-30 16:05:40 +00:00
Andrew Garrett
c8b5de87ee
Split out the regex for invalid title characters and sequences so it can be used elsewhere in MediaWiki (will in a moment be used in LiquidThreads).
2009-09-30 10:36:22 +00:00
Alexandre Emsenhuber
761eb18980
change $fname to __METHOD__ in Title::moveOverExistingRedirect() and Title::moveToNewTitle()
2009-09-26 08:05:58 +00:00
Tim Starling
e5c0746478
(r55382) Removed U+200B, zero-width space, from the list of characters to be converted to an underscore. This character is used in Khmer, Burmese and Thai (km, my, th) as an invisible word break indicator for the purposes of line wrapping. This is especially necessary for Khmer and Burmese since browsers do not have automatic word segmentation for those languages, like they do for Thai. It's not appropriate for these word break hints to be displayed as spaces.
2009-09-25 15:15:33 +00:00
Alexandre Emsenhuber
13e43c1fdb
* (bug 20726) Title::getLatestRevID's documentation now says that the function returns false if the page doesn't exist
2009-09-20 20:39:48 +00:00