Jump to content

Manual talk:$IP

Add topic
From mediawiki.org
Latest comment: 7 years ago by Mainframe98 in topic Translation

LocalSettings

[edit]

The file LocalSettings.php has the paragraph

# If you customize your file layout, set $IP to the directory that contains
# the other MediaWiki files. It will be used as a base to locate files.
if( defined( 'MW_INSTALL_PATH' ) ) {
        $IP = MW_INSTALL_PATH;
} else {
        $IP = dirname( __FILE__ );
}

Should this paragraph be edited for the setting up of the mediawiki?

Should the string MW_INSTALL_PATH be substituted to some sequence of characters, specific for the custom server?

Should the string dirname( __FILE__ ) be substituted to some sequence of characters, specific for the custom server?

Can this setting be responsible for the error message Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert):

Is it possible to put the answers in the article?

Such an explanation would help to indicate the path in such a way that the mediawiki finds the programs it needs. Tori 19:07, 6 March 2011 (UTC)Reply

MW_INSTALL_PATH is a constant. It must not be changed. dirname() is a php function, which automatically returns the right sequence of characters. The block of code is fine as it is. :-) — Preceding unsigned comment added by 88.130.95.104 (talkcontribs) 17:23, 13 January 2012‎

Translation

[edit]

This page needs to be marked! 24.39.1.140 13:26, 13 October 2016 (UTC)Reply

Yes Done - sometime in the past. Mainframe98 talk 07:47, 16 July 2017 (UTC)Reply