Thanks Sam, just what I was looking for!
I assume this will only add the element to the array, correct? There's no need to specify all the protocols that are in DefaultSettings.php?
Taylor
----- Original Message ---- From: Sam Korn smoddy@gmail.com To: MediaWiki announcements and site admin list mediawiki-l@wikimedia.org Sent: Tuesday, October 17, 2006 8:55:27 AM Subject: Re: [Mediawiki-l] Antwort: Re: Link to a Windows-Fileshare
On 10/17/06, christoph.huesler@css.ch christoph.huesler@css.ch wrote:
Hi
You should _never_ edit DefaultSettings.php. Instead, make your changes in LocalSettings.php.
Otherwise you will have issues with upgrading to a newer version of mediawiki.
That is to say, you should insert this in LocalSettings.php:
$wgUrlProtocols[] = 'file://';
I think this will overwrite the array... You'll probably need to take the one from defaultsettings, and change it accordingly.
V/r,
Ryan Lane
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l- bounces@Wikimedia.org] On Behalf Of JTAutry Sent: Tuesday, October 17, 2006 9:46 AM To: MediaWiki announcements and site admin list; MediaWiki
announcements
and site admin list Subject: Re: [Mediawiki-l] Antwort: Re: Link to a Windows-Fileshare
Thanks Sam, just what I was looking for!
I assume this will only add the element to the array, correct?
There's no
need to specify all the protocols that are in DefaultSettings.php?
Taylor
----- Original Message ---- From: Sam Korn smoddy@gmail.com To: MediaWiki announcements and site admin list <mediawiki- l@wikimedia.org> Sent: Tuesday, October 17, 2006 8:55:27 AM Subject: Re: [Mediawiki-l] Antwort: Re: Link to a Windows-Fileshare
On 10/17/06, christoph.huesler@css.ch christoph.huesler@css.ch
wrote:
Hi
You should _never_ edit DefaultSettings.php. Instead, make your
changes
in
LocalSettings.php.
Otherwise you will have issues with upgrading to a newer version of mediawiki.
That is to say, you should insert this in LocalSettings.php:
$wgUrlProtocols[] = 'file://';
-- Sam _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On 10/17/06, Lane, Ryan Ryan.Lane@ocean.navo.navy.mil wrote:
I think this will overwrite the array... You'll probably need to take the one from defaultsettings, and change it accordingly.
$wgUrlProtocols[] = 'file://'; would add a new value to the end of an array.
$wgUrlProtocols = 'file://'; would overwrite the array.
See http://uk.php.net/function.array-push
mediawiki-l@lists.wikimedia.org