1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 09:34:54 +02:00

Missing legacy constants in some cases;

Featurebox empty tablerender removed when there are hidden items;
Index page (when set Welcome Message) empty tablerender removed;
This commit is contained in:
secretr
2011-12-05 15:12:56 +00:00
parent a73dc8ed10
commit a2c8e9046e
3 changed files with 16 additions and 6 deletions

View File

@@ -28,13 +28,18 @@
$front->init()
->run();
$request = $front->getRequest();
// If not already done - define legacy constants
$request->setLegacyQstring();
$request->setLegacyPage();
$inc = $front->isLegacy();
if($inc)
{
// last chance to set legacy env
$request = $front->getRequest();
$request->setLegacyQstring();
$request->setLegacyPage();
$request->populateRequestParams();
if(!is_file($inc) || !is_readable($inc))
{
echo 'Bad request - destination unreachable - '.$inc;