Commit graph

18 commits

Author SHA1 Message Date
Daniel Friesen
73482615dd Revert Microdata improvements in r111891, r111898, r111899, r111901, r111903, and r111906 till after the git migration. 2012-02-20 22:32:18 +00:00
Daniel Friesen
a76e8f10c4 Followup r111903; Introduce a new Tidy hack to prevent tidy from stripping the <link> and <meta> elements from the body which are used in Microdata.
We do this by replacing every <link> and <meta> with a <html-link> or <html-meta> element and adding html-link and html-meta to tidy's new-empty-tags config so that Tidy doesn't strip it, and then restoring the <html-*> elements back to normal.
2012-02-20 02:12:48 +00:00
Sam Reed
0a626db6e1 Fixing some of the "@return true" or "@return false", need to be "@return bool" and then the metadata can say true if foo, false if bar
Other documentation improvements
2012-02-09 19:29:36 +00:00
Sam Reed
62491fef13 Comments, braces, explicit member variables
Remove a couple of unused variables
2011-11-16 13:22:03 +00:00
Platonides
2e3f7a97fd Profiling errors. r92106 missed a wfProfileOut
r92118 added a wfProfileIn but not all returns were covered. Also changed its spaces to tabs.
2011-07-19 19:05:23 +00:00
Aaron Schulz
a4f4964edc Removed unused function 2011-07-15 20:47:37 +00:00
Aaron Schulz
486624cfe4 * Removed function_exists check in MWTidy, proc_open is on any PHP at out minimum PHP version
* Show warnings if we can't run tidy for some reason (bug 27889)
* Moved $wgDebugTidy check (changing the value from null would break MWTidy::tidy())
* Fixed some outdated comment
* Made a few w/s changes
2011-07-13 22:10:20 +00:00
Sam Reed
ba0cbdeeff More parameter documentation!! 2011-05-28 15:59:57 +00:00
Platonides
aeb547b465 Adding more wfProfileOut() 2011-02-10 16:11:34 +00:00
Daniel Friesen
f0fd318a4e Followup r81583, break some of the long lines and centralize the regex. 2011-02-08 01:31:21 +00:00
Daniel Friesen
d06c054971 Switch <editsection> to <mw:editsection> and start hiding these editsection tags from Tidy so it doesn't break them. 2011-02-06 01:38:33 +00:00
Aryeh Gregor
57b42fb1c0 Revert r42257 "Convert literal tabs to &#9; when passing them through Tidy, to prevent them from being clobbered."
This caused bug 16108, and also broke the patch to bug 3276.  The commit
doesn't explain why it's useful or what it fixes, although Platonides
asked on Code Review in 2008, so that's two problems it's caused with no
benefits I've seen.
2010-11-29 00:10:59 +00:00
Alexandre Emsenhuber
dc50e1a4bf * Added file description headers
* Added @file where needed
2010-08-22 14:31:05 +00:00
Alexandre Emsenhuber
1ec45bef2e Fixed some doxygen warnings 2010-06-09 14:57:59 +00:00
Aaron Schulz
b020bc34ca Removed unused var 2010-02-24 03:38:06 +00:00
Siebrand Mazeland
9e968c0bfa Re-revert r46344 because of crossing commits (r46346) 2009-01-27 15:20:31 +00:00
Siebrand Mazeland
4b9b399711 Revert r46344. PHP Fatal error: Class 'MWTidy' not found in /var/www/w/includes/parser/Parser.php on line 378 2009-01-27 15:17:45 +00:00
Alexandre Emsenhuber
c119961f31 Per Brion's comment on http://www.mediawiki.org/wiki/Special:Code/MediaWiki/46145#c1445 :
* Refactored Tidy function in a new class, MWTidy
* Only added Parser::tidy() for b/c, Parser::internalTidy() and Parser::externalTidy() were marked as private and are unused in core and extensions
* Added RELEASE-NOTES entry
2009-01-27 15:09:19 +00:00