This causes it to add history, and trigger the TitleSquidURLs hook.
Bug: T116095
Change-Id: I41ebd2f34347a3f218f7d0bfc8962d286b943c16
public static function newFromTitles( $titles, $urlArr = array() ) {
/** @var Title $title */
foreach ( $titles as $title ) {
public static function newFromTitles( $titles, $urlArr = array() ) {
/** @var Title $title */
foreach ( $titles as $title ) {
- $urlArr[] = $title->getInternalURL();
+ $urlArr = array_merge( $urlArr, $title->getSquidURLs() );
}
return new SquidUpdate( $urlArr );
}
return new SquidUpdate( $urlArr );