Siebrand Mazeland
79d5225c0e
* remove end of line whitespace
...
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Rob Church
776a943cce
(bug 11474) Fix unintentional fall-through in math error handling
2007-09-27 17:33:59 +00:00
Brion Vibber
4d3446a8e3
* (bug 10508) Allow HTML attributes on <gallery>
...
* (bug 1962) Allow HTML attributes on <math>
2007-07-13 17:25:06 +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
Greg Sabino Mullane
ac059274ec
Have Math.php use encodeBlob and decodeBlob when accessing the binary fields math_inputhash and math_outputhash. Better
...
long-term solution is to simply store the hexadecimal as text, but converting via updaters.inc will be complex.
Fixes bug # 9909.
2007-06-08 01:06:52 +00:00
Nick Jenkins
f88c771756
The war on redundant ampersand usage!
...
* Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );"
* convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();"
For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too.
Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode.
2007-01-22 23:50:42 +00:00
Antoine Musso
c771fc9c96
Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
2007-01-20 15:09:52 +00:00
Antoine Musso
b144fcb85d
Rename constructors to __constructor
2007-01-20 13:34:31 +00:00
Antoine Musso
171164f835
Return nothing on empty math tags instead of char encoding
2007-01-06 18:46:08 +00:00
Nick Jenkins
ae8554c45b
Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth.
2006-11-29 11:43:58 +00:00
Antoine Musso
fd912a148b
A lot more of static issues when using E_STRICT from the commandline.
2006-07-10 15:41:30 +00:00
Rob Church
048021c14a
(bug 672) Add MathAfterTexvc hook
2006-06-26 15:50:03 +00:00
Domas Mituzas
e2ae8925ff
AutoLoad Math.php
2006-06-06 10:00:53 +00:00
Brion Vibber
0a26267688
Revert to r14512; domas introduced massive breakage with incomplete experimental changes. They will be recommitted when they work. :)
2006-06-01 08:19:02 +00:00
Domas Mituzas
bda0b8e104
Use AutoLoader to load classes:
...
* remove require_once() throughout whole code, yet left in few places
* move global functions in HttpUtils, ProxyTools, Credits to class methods
* php5 only: __autoload() now used, combined with class->file map and require()
* move initialization of $wgValidSkinNames to Skin::getSkinNames()
* few more changes that will surely break stuff.
2006-06-01 07:22:49 +00:00
Antoine Musso
b64d8b46c6
Unused call to wfMsg('math_unknown_error')
2006-05-01 10:40:31 +00:00
Brion Vibber
60d5263827
* (bug 3347) strip linebreaks in math error source
2006-02-03 06:36:05 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Brion Vibber
9d15c14be4
* (bug 3877) Render math images into temp directory, then move to hashed
...
subdir so you can render new math images and have them work
2005-11-04 02:33:50 +00:00
Jens Frank
abcffab3c0
Change storage architecture in images/math/.
...
Old: images/math/434be915b5fe2e0e63cad907f254dfd5.png
New: images/math/4/3/4/434be915b5fe2e0e63cad907f254dfd5.png
2005-11-02 23:14:33 +00:00
Tim Starling
6668f232d7
Generic cygwin hack
2005-06-18 05:09:27 +00:00
Tim Starling
cdb3f96ab8
Various live patches ported from REL1_4
2005-04-12 04:03:21 +00:00
Brion Vibber
ff89c2eddd
Fix some variable typos
2004-11-21 08:58:46 +00:00
Tim Starling
412eda0517
Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php
2004-10-24 07:10:33 +00:00
Antoine Musso
ba2afcd9fa
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema
2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97
Changing comments layout preparing for generated documentation with Phpdocumentor
2004-09-02 23:28:24 +00:00
Antoine Musso
3d60242fb5
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
2004-08-22 17:24:50 +00:00
Tim Starling
ac549401d4
* Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
...
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Gabriel Wicke
d026807c3e
unclosed array. tim, please check if this fix closes at the right spot
2004-07-12 20:59:25 +00:00
Tim Starling
b96b707efa
OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature.
2004-07-10 03:09:26 +00:00
Gabriel Wicke
f94b22b924
wrap tex html output in span class="texhtml"
2004-06-08 13:19:21 +00:00
Arne Heizmann
5a292593e3
Bugfix suggested by Laurent GUERBY on wikitech-l
2004-06-07 17:19:05 +00:00
Gabriel Wicke
bb3a75924e
alt text formatting- keep image src on one line to play nice with the parser
2004-05-17 00:14:42 +00:00
Jens Frank
ca3ee3e3a1
"REPLACE" is a "DB_WRITE" action
2004-04-27 05:44:55 +00:00
Brion Vibber
93b09379fb
Add experimental MathML output option for math (only works with some
...
browsers and requires use of an XML content type; try setting
$wgMimeType = "application/xhtml+xml" and use Mozilla).
Rearranged a couple things in prefs.
Did some refactoring in Math.php to remove some duplicated code and
figure out what is going on.
2004-04-22 08:51:04 +00:00
Antoine Musso
e0dbc1c4be
ending ) thx to jeronim@irc
2004-04-06 13:51:29 +00:00
Brion Vibber
3d2a067e8c
HTML tweaks inching towards XHTML-friendly output. To test:
...
$wgMimeType = "text/xml";
$wgDocType = "-//W3C//DTD XHTML 1.0 Transitional//EN";
$wgDTD = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ";
Mozilla will spit out angry erorrs at all the well-formedness errors.
2004-04-03 10:01:08 +00:00
Brion Vibber
84027db7f2
Installation, compatibility, security fixlets:
...
* Detect use of PHP as CGI and disable index.php/Title URLs
* Try to auto-create math tmp & output directories if not present
* Disable Asksql in default install ($wgAllowSysopQueries)
Added skin names to LanguageEo
2004-03-26 16:47:12 +00:00
Brion Vibber
0332f4c598
Fix for compatibility with short_open_tag = Off
2004-02-18 02:15:00 +00:00
Brion Vibber
08395634fa
Configurable location of texvc; detect failure to produce PNG output when
...
texvc returns otherwise correctly; clean up whitespace.
2004-01-11 23:14:20 +00:00
Tim Starling
46787701ce
Nov. branch merge. Various features backported from stable, various bug fixes.
2003-11-09 11:45:12 +00:00
Tim Starling
7057b4e609
wfQuery now takes three parameters -- one extra for DB replication purposes
2003-09-20 01:34:06 +00:00
Brion Vibber
93b5c48f35
Trying to cut these monster files to manageable size... moving math support functions from OutputPage.php into Math.php
2003-08-30 10:04:59 +00:00