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
Alex Z
ebb1175763
Fix logic error from r54153. By negating each individual isAllowed check, the OR statement would return true
...
(and not allow the action) if the user didn't have both rights rather than checking if he has either one.
2009-09-17 04:27:02 +00:00
Brion Vibber
415b4059b9
Merge live hack from wmf-deployment r53208: skip calculation of display names for groups in permission errors when we're only checking for a yes/no
2009-09-14 21:42:28 +00:00
Happy-melon
a0e83700a6
(bug14900) Make __INDEX__ and __NOINDEX__ not override $wgArticleRobotPolicies where the two conflict.
2009-08-31 19:19:12 +00:00
Brion Vibber
8dfb5c2e23
* (bug 11143) Links containing invalid UTF-8 percent-code sequences are now
...
cleanly disabled instead of breaking parsing entirely on PHP 5.2.
This was fixed as a side-effect of r55382 for bug 15248; adding comments
in Title::secureAndSplit nothing this.
2009-08-23 00:45:36 +00:00
Brion Vibber
7269b2e2b3
Fix for wgArticleId being exported to JavaScript as a string instead of integer. :P
...
Throw around some intval()s on page id, length data coming out of database into Title and Article objects and the link cache... blast PHP's soft typing!
2009-08-21 18:11:13 +00:00
Ilmari Karonen
9b75e95ef0
(bug 15248) Normalize NBSP and other odd Unicode whitespace characters to normal spaces.
...
Note: run cleanupTitles.php and cleanupImages.php after deploying this!
2009-08-20 14:56:11 +00:00
Roan Kattouw
1317ce730b
Untested equivalent of r55262 ("When moving a page to a subpage of itself, don't move the root page twice") for Title::moveSubpages(). SpecialMovepage should be refactored to use Title::moveSubpages() some day.
2009-08-18 20:28:26 +00:00
Aryeh Gregor
0b29e17e8d
Throw an exception instead of PHP fatal error
...
I don't actually know how this is getting hit, but it was in my testing,
although not reproducibly.
2009-08-18 20:14:41 +00:00
Aryeh Gregor
6bc5dc51a2
Fix fatal on every move over redirect, from r53659
...
Best not to call methods on variables until after you initialize them.
:)
2009-08-18 10:43:22 +00:00
Andrew Garrett
8443b45cf4
* Fail fast on trying to find create restrictions for pages that exist.
...
* Break out loadRestrictionsFromRow into a new function loadRestrictionsFromRows (which actually accepts an array of rows, unlike the original), and loadRestrictionsFromResultWrapper, which has the semantics of the old function (and wraps around loadRestrictionsFromRows).
2009-08-06 16:26:04 +00:00