protected static function addTemplateURL($data)
	{
		if (substr($data['templatePath'], 0, 10) === 'templates/') {

			$data['templateURL'] = static::getBackendURL('tpl_editor', null, $data['templatePath'], 'source');

			\System::loadLanguageFile('tl_files');
			$data['templateLabel'] = sprintf($GLOBALS['TL_LANG']['tl_files']['source'][1], basename($data['templatePath']));

		}
		else {

			$data['templateURL'] = static::getBackendURL('tpl_editor', null, null, null, array(
				'key' => 'new_tpl',
				'original' => $data['templatePath'],
				'target' => $GLOBALS['objPage']->templateGroup ?: 'templates',
			));

			\System::loadLanguageFile('tl_templates');
			$data['templateLabel'] = $GLOBALS['TL_LANG']['tl_templates']['new_tpl'][1];

		}

		return $data;
	}