X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfixExtLinksProtocolRelative.php;h=f5861e5a0bd9636b0c3cc70725b70af8c7b57eb6;hb=0eb97872a54229f5c9892a1202882997a50d7e37;hp=97cd37e07e8d2dcd3db7667939ef2375f6b8a589;hpb=f0bef2cf6994c49031d89425b3b3c56fd0e89a65;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixExtLinksProtocolRelative.php b/maintenance/fixExtLinksProtocolRelative.php index 97cd37e07e..f5861e5a0b 100644 --- a/maintenance/fixExtLinksProtocolRelative.php +++ b/maintenance/fixExtLinksProtocolRelative.php @@ -71,11 +71,13 @@ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance { 'el_from' => $row->el_from, 'el_to' => $row->el_to, 'el_index' => "http:{$row->el_index}", + 'el_index_60' => substr( "http:{$row->el_index}", 0, 60 ), ], [ 'el_from' => $row->el_from, 'el_to' => $row->el_to, 'el_index' => "https:{$row->el_index}", + 'el_index_60' => substr( "https:{$row->el_index}", 0, 60 ), ] ], __METHOD__, [ 'IGNORE' ] ); @@ -95,5 +97,5 @@ class FixExtLinksProtocolRelative extends LoggedUpdateMaintenance { } } -$maintClass = "FixExtLinksProtocolRelative"; +$maintClass = FixExtLinksProtocolRelative::class; require_once RUN_MAINTENANCE_IF_MAIN;