// Generates meta description for given module and 'what' value
function generateMetaDescriptionCode ($module, $what) {
- // Exclude admin and member's area
- if (($module != 'admin') && ($module != 'login')) {
+ // Only include from guest area
+ if ($module == 'index') {
// Construct dynamic description
$DESCR = '{?MAIN_TITLE?} '.trim(getConfig('title_middle')) . ' ' . getTitleFromMenu('guest', $what);
// Output it directly
- outputHtml('<meta name="description" content="' . $DESCR . '" />');
+ $GLOBALS['page_header'] .= '<meta name="description" content="' . $DESCR . '" />';
} // END - if
// Remove depth