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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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