On Thu, Aug 26, 2010 at 7:21 PM, Conrad Irwin <conrad.irwin(a)gmail.com> wrote:
On 26 August 2010 16:13, Trevor Parscal
<tparscal(a)wikimedia.org> wrote:
You can also use things like function_exists()
to conditionally call
MediaWiki versions of things or native PHP stuff.
With respect, this is the wrong way to go about it. Unconditionally
remove all MediaWIki from within the library, and, if necessary,
create a wrapper that provides the extra functionality we need.
This.
The current examples of
deliberately MediaWIki free code are very good candidates for this as
they provide complex functionality that's really hard to do right yet
they have very simple interfaces.
IEContentAnaylzer is probably the best example. CDB-related stuff too.
I went ahead and moved some stuff around in r71763.
-Chad