Last modified: 2011-03-13 18:05:32 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 T5249, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3249 - Proposal: a new variable {{SERVER_EXTERN}}
Proposal: a new variable {{SERVER_EXTERN}}
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.5.x
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks: 3246
  Show dependency treegraph
 
Reported: 2005-08-24 08:00 UTC by T. Gries
Modified: 2011-03-13 18:05 UTC (History)
0 users

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


Attachments
patch against REL1_5 (6.28 KB, patch)
2005-08-24 23:40 UTC, T. Gries
Details

Description T. Gries 2005-08-24 08:00:41 UTC
We already have {{SERVER}}.

This variable can have different values depending on how the wiki is accessed.
Examples: http://localhost , http://internal.network or http://www.domain.tld

In e-mails sent by the wiki (especially enotifs) and in the text templates for
them, it would be useful to have  a fixed variable, which the Sysop can set to
{{SERVER}} (installation default) or to a different value, which then reflects
the external server address such as http://www.domain.tld and is substituted.

I hereby propose to implement an additional variable with the name
{{SERVER_EXTERN}} which can be used by the wiki software internally (example:
UserMailer.php), MediaWiki: pages and any wiki page
Comment 1 T. Gries 2005-08-24 08:04:19 UTC
(In reply to comment #0)
> I hereby propose to implement an additional variable with the name
> {{SERVER_EXTERN}} which can be used by the wiki software internally (example:
> UserMailer.php), MediaWiki: pages and any wiki page

* The value needs to be defined either in LocalSettings.php or in a page
[[MediaWiki:SERVER_EXTERN]]
* default value (installation) = {{SERVER}}
i.e. {{SERVER_EXTERN}} follows the value of {{SERVER}} except when a different
value is given in LocalSettings.php or [[MediaWiki:SERVER_EXTERN]]
Comment 2 T. Gries 2005-08-24 23:40:44 UTC
Created attachment 828 [details]
patch against REL1_5

The small patch implements a new variable {{SERVER_EXTERN}}.
Its value follows the value of MediaWiki:server_extern (default = {{SERVER}})

Usage:
to allow a fixed wiki server address in e-mail notifications, regardless, how
the wiki was actually accessed (localhost, intranet, internet) by the page
editor.

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


Navigation
Links