1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Multi-language db-verify fix.

This commit is contained in:
CaMer0n
2009-11-23 00:52:27 +00:00
parent 9911390332
commit 89b6c2dc33
2 changed files with 44 additions and 21 deletions

View File

@@ -9,8 +9,8 @@
* News frontend
*
* $Source: /cvs_backup/e107_0.8/index.php,v $
* $Revision: 1.8 $
* $Date: 2009-11-18 01:04:24 $
* $Revision: 1.9 $
* $Date: 2009-11-23 00:52:27 $
* $Author: e107coders $
*/
@@ -38,20 +38,23 @@ if (isset($pref['frontpage']['all']) && $pref['frontpage']['all'])
}
else
{ // This is the 'new' method - assumes $pref['frontpage'] is an ordered list of rules
foreach ($pref['frontpage'] as $fk=>$fp)
if(vartrue($pref['frontpage']))
{
if (in_array($fk, $class_list))
foreach ($pref['frontpage'] as $fk=>$fp)
{
// Debateable whether we should append $query - we may be redirecting to a custom page, for example
if (strpos($fp, '{') !== FALSE)
if (in_array($fk, $class_list))
{
$location = $tp->replaceConstants($fp).$query;
// Debateable whether we should append $query - we may be redirecting to a custom page, for example
if (strpos($fp, '{') !== FALSE)
{
$location = $tp->replaceConstants($fp).$query;
}
else
{
$location = ((strpos($fp, 'http') === FALSE) ? e_BASE : '').$fp.$query;
}
break;
}
else
{
$location = ((strpos($fp, 'http') === FALSE) ? e_BASE : '').$fp.$query;
}
break;
}
}
}