Jump to content
MediaWiki

Manual:fixExtLinksProtocolRelative.php

From mediawiki.org
MediaWiki version:
≥ 1.18
MediaWiki file: fixExtLinksProtocolRelative.php
Location: maintenance/
Source code: master1.43.11.42.61.39.12
Classes: FixExtLinksProtocolRelative

Details

[edit ]

fixExtLinksProtocolRelative.php file is a maintenance script to fix any entries for protocol-relative URLs in the externallinks table, replacing each protocol-relative entry with two entries, one for HTTP and one for HTTPS.

Options

[edit ]

This script does not accept any options.

Usage

[edit ]
phpmaintenance/run.phpfixExtLinksProtocolRelative
Terminal
$ php maintenance/run.php fixExtLinksProtocolRelative
Fixing protocol-relative entries in the externallinks table...
Done, 12 rows updated.
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

See also

[edit ]

AltStyle によって変換されたページ (->オリジナル) /