Closed xchs closed 5 years ago
pls test, I'll tag a new version on success. thanks :)
Yes, mission accomplished. xml file was successfully generated and updated in web/share/ Tested with Contao 4.4.32
This breaks compatibility with Contao 3. The method \Contao\StringUtil::stripRootDir
is not available there.
Thats really bad! Can anyone fix this please?
May be just do
if (class_exists(\Contao\CoreBundle\ContaoCoreBundle::class)) {
$objRss = new \File(StringUtil::stripRootDir(System::getContainer()->getParameter('contao.web_dir')) . '/share/' . $strFile . '.xml');
} else {
$objRss = new \File($strFile . '.xml');
}
Yes smth like that. Can you prep a PR?
Only an untested one, since I am not actively using this extension ;). The problem came up in a community forum thread.
Probably someone there could test the fix?
Fix the feed share directory.