'ADMIN' ]; public function __construct() { Deprecation::notice( '4.13.0', 'Will be removed without equivalent functionality to replace it', Deprecation::SCOPE_CLASS ); } public function makelinksunique() { $table = DataObject::singleton(SiteTree::class)->baseTable(); $badURLs = "'" . implode("', '", DB::query("SELECT \"URLSegment\", count(*) FROM \"$table\" GROUP BY \"URLSegment\" HAVING count(*) > 1")->column()) . "'"; $pages = DataObject::get(SiteTree::class, "\"$table\".\"URLSegment\" IN ($badURLs)"); foreach ($pages as $page) { echo "