Hi everyone,
is it possible to define a variable in LocalSettings.php which I can use in an skin? I'm currently using one single LocalSettings.php for 3 wikis. They share several things and I'd like to incorporate Google Analytics with different Analytic IDs.
Any idea?
All the best, Marcus
Marcus Stöhr wrote:
Hi everyone,
is it possible to define a variable in LocalSettings.php which I can use in an skin? I'm currently using one single LocalSettings.php for 3 wikis. They share several things and I'd like to incorporate Google Analytics with different Analytic IDs.
Any idea?
All the best, Marcus
if (is_wiki1) { $variable = 'value1'; } else if (is_wiki2) { $variable = 'value2'; } else if (is_wiki3) { $variable = 'value3'; } else { die("No such wiki"); }
Thanks. Got it working. :)
Platonides schrieb:
Marcus Stöhr wrote:
Hi everyone,
is it possible to define a variable in LocalSettings.php which I can use in an skin? I'm currently using one single LocalSettings.php for 3 wikis. They share several things and I'd like to incorporate Google Analytics with different Analytic IDs.
Any idea?
All the best, Marcus
if (is_wiki1) { $variable = 'value1'; } else if (is_wiki2) { $variable = 'value2'; } else if (is_wiki3) { $variable = 'value3'; } else { die("No such wiki"); }
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org