Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
As suggested by budda here:
http://drupal.org/node/17291#comment-71617
The variable $frontpage is created, but not used:
/* Set title and breadcrumb to declared values */
if ($_GET['q'] == variable_get('site_frontpage', 'node')) {
$mission = theme_get_setting('mission');
$frontpage = true;
}
Aside, the same "concept" is populated in function _phptemplate_default_variables():
if (drupal_get_path_alias($_GET['q']) == variable_get('site_frontpage', 'node')) {
$variables['is_front'] = true;
}
$is_front is passed to all *.tpl.php files, hence $frontpage is not needed.
Please, see attached patch.
Comment | File | Size | Author |
---|---|---|---|
phptemplate.frontpage.patch | 413 bytes | markus_petrux | |
Comments
Comment #1
Dries CreditAttribution: Dries commentedCommitted to HEAD. Thanks.
Comment #2
markus_petrux CreditAttribution: markus_petrux commentedComment #3
(not verified) CreditAttribution: commented