- some changes to the meta description handling

- bug fix for categories cache generation
parent 3ad75a36
......@@ -111,7 +111,12 @@ class ACP3_SEO
if (empty($description))
$description = self::getDescription(ACP3_CMS::$uri->mod);
return !empty($description) ? $description . (!empty(self::$meta_description_postfix) ? ' - ' . self::$meta_description_postfix : '') : CONFIG_SEO_META_DESCRIPTION;
if ((ACP3_CMS::$uri->query === CONFIG_HOMEPAGE && CONFIG_SEO_META_DESCRIPTION !== '') ||
empty($description)) {
return CONFIG_SEO_META_DESCRIPTION;
} else {
return $description . (!empty(self::$meta_description_postfix) ? ' - ' . self::$meta_description_postfix : '');
}
}
/**
* Gibt die Keywords der aktuell angezeigten Seite oder der
......
......@@ -506,9 +506,11 @@ function pagination($rows, $fragment = '')
// Vorherige und nächste Seite für Suchmaschinen und Prefetching propagieren
if (defined('IN_ADM') === false) {
ACP3_SEO::setDescriptionPostfix(sprintf(ACP3_CMS::$lang->t('system', 'page_x'), $current_page));
if ($current_page - 1 > 0)
if ($current_page - 1 > 0) {
// Seitenangabe in der Seitenbeschreibung ab Seite 2 angeben
ACP3_SEO::setDescriptionPostfix(sprintf(ACP3_CMS::$lang->t('system', 'page_x'), $current_page));
ACP3_SEO::setPreviousPage($link . 'page_' . ($current_page - 1) . '/');
}
if ($current_page + 1 <= $c_pagination)
ACP3_SEO::setNextPage($link . 'page_' . ($current_page + 1) . '/');
if (isset(ACP3_CMS::$uri->page) && ACP3_CMS::$uri->page === 1)
......
......@@ -60,7 +60,7 @@ if (ACP3_Validate::isNumber(ACP3_CMS::$uri->id) === true &&
$bool = ACP3_CMS::$db2->update(DB_PRE . 'categories', $update_values, array('id' => ACP3_CMS::$uri->id));
setCategoriesCache($module['title']);
setCategoriesCache($module['name']);
ACP3_CMS::$session->unsetFormToken();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment