scenario: modifying calendar template...
I have the following code in the calendar.php file... and I would like to know how I can incorporate an if condition if $_REQUEST['do'] array = edit???
i tried <if condition="$_REQUEST['edit']"> without luck... any ideas??
PHP Code:
if (PHP_VERSION < '4.1.0')
{
$_REQUEST = array_merge($HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS);
$_COOKIE = &$HTTP_COOKIE_VARS;
}
// get the editor templates if required
if (in_array($_REQUEST['do'], array('edit', 'add', 'manage')))
{
define('GET_EDIT_TEMPLATES', true);
}