Last modified: 2006-02-23 19:20:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T5180, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3180 - add a DEFINE in fornt of all require_once
add a DEFINE in fornt of all require_once
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Redirects (Other open bugs)
1.6.x
All All
: Low minor with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-17 19:04 UTC by Andres Obrero
Modified: 2006-02-23 19:20 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andres Obrero 2005-08-17 19:04:12 UTC
i successfully embedded mediawiki into mambo and gallery2.
The only thing i had to do is (from mediawikis point of view)
A) to add a define to all require_once in the the code
B) to change the redirect to the modified index.php
c) add the line
$wgOut->mArticleBodyOnly = true;
before $wgOut->output();

and it really rocks. A big compliment to all the coders.

Now my wish: please add a 
define("_BASE_", ""); in LocalSettings.php
and put this define before every 
require_once("./include...) -> require_once(_BASE_./include...)

this didn't cause any sideeffects at all, but it will allow using another
index.php on another location or to include the whole stuff as api.

Andres Obrero
Comment 1 Niklas Laxström 2005-08-19 15:56:20 UTC
Regarding to c), would modifying include path suffice?

I have the following in my localsettings:

ini_set( "include_path",
".:$IP:$IP/includes:$IP/languages:/services/www/mediawikicommon" );


Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links