Christian Lohmaier wrote:
> It probably ignores the subsite filter, either in retrieving the pages
> or when putting them into the cache. Either way, I reserved some
> pomodoros for this today.
>
Sticking in
@@ -266,7 +302,14 @@ class DownloadSimplePage_Controller extends
Page_Controller implements i18nEntit
$tags[] = "dltype".($temptype .= "-".$typepart);
foreach ($tags as $tag)
$sql[] = "concat(MetaKeywords,',') like
'%".convert::raw2sql($tag).",%'";
- $result = DataObject::get("SiteTree", "(".implode(" OR
", $sql).")", "MenuTitle");
+ $lang = i18n::default_locale();
+ if ($this->SubsiteID) {
+ $subsite = DataObject::get_by_ID("Subsite",
$this->SubsiteID);
+ if ($subsite) {
+ $lang = $subsite->getLanguage();
+ }
+ }
+ $result = Translatable::get_by_locale("SiteTree",
$lang, "(".implode(" OR ", $sql).")", "MenuTitle");
$cache->save(serialize($result));
}
return $result;
did not help immediately (though I never seem to recall whether the
caching is flushed via ?flush=all or through another mechanism) FWIW.
Cheers,
-- Thorsten
--
Unsubscribe instructions: E-mail to [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted