Форумы / Cotonti / Localization / [Template] Plugin lang-file

dervan
#10213 20.03.2009 04:58
IMO, it's need to check for legal running of code

now used code like this:
if (!defined('SED_CODE')) { die('Wrong URL.'); }
but this code is not convenient to Cotonti Coding Style

conventional code:
if (!defined('SED_CODE'))
{
	die('Wrong URL.');
}
but this code is not compact

compact code with the same check:
defined('SED_CODE') or die('Wrong URL.');

i suggest to add this check in template:
<?php
/**
 * LOCALE Language File for PLUG Plugin
 *
 * @package Cotonti
 * @version VERSION
 * @author Cotonti Translators Team
 * @copyright Copyright (c) 2008-2009 Cotonti Team
 * @license BSD
 */

defined('SED_CODE') or die('Wrong URL.');

/**
 * Plugin Title & Subtitle
 */