Improve backward compatibility for LegacyRouter

LegacyRouter is no longer used for routing, only in existing plugins to match the _PAGE_ parameter.
So we change a few of its values there, to match the new ones defined in TemplatePage.

@see discussion in 
This commit is contained in:
ArthurHoaro 2020-09-03 10:09:32 +02:00
parent 0e60b7f174
commit ce7918386a
3 changed files with 7 additions and 643 deletions
application/front/controller/visitor

View file

@ -46,10 +46,10 @@ class FeedController extends ShaarliVisitorController
$data = $this->container->feedBuilder->buildData($feedType, $request->getParams());
$this->executePageHooks('render_feed', $data, $feedType);
$this->executePageHooks('render_feed', $data, 'feed.' . $feedType);
$this->assignAllView($data);
$content = $this->render('feed.'. $feedType);
$content = $this->render('feed.' . $feedType);
$cache->cache($content);