<?php
/**
 * @brief		4.4.1 Upgrade Code
 * @subpackage	Pages
 * @since		15 Feb 2019
 */

namespace IPS\cms\setup\upg_104009;

/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !\defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
	header( ( isset( $_SERVER['SERVER_PROTOCOL'] ) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0' ) . ' 403 Forbidden' );
	exit;
}

/**
 * 4.4.1 Upgrade Code
 */
class _Upgrade
{
	/**
	 * Rebuild reciprocal links
	 *
	 * @return	void
	 */
	public function finish()
	{
		
		\IPS\cms\Databases::rebuildReciprocalLinkMaps();

		return TRUE;
	}
	
	// You can create as many additional methods (step2, step3, etc.) as is necessary.
	// Each step will be executed in a new HTTP request
}