Revision 1893
Added by Luisehahne over 12 years ago
- little issue on handing the cache in TranslationTable
- fix missing block or block0 issue in /admin/pages/section.php
| sections.php | ||
|---|---|---|
| 213 | 213 |
{
|
| 214 | 214 |
require($template_location); |
| 215 | 215 |
} |
| 216 |
// Check if $menu is set
|
|
| 217 |
if(!isset($block[1]) || $block[1] == '')
|
|
| 218 |
{
|
|
| 219 |
// Make our own menu list
|
|
| 220 |
$block[1] = $TEXT['MAIN'];
|
|
| 216 |
// check block settings from template/info.php
|
|
| 217 |
if(isset($block) && is_array($block) && sizeof($block) > 0) {
|
|
| 218 |
if(isset($block[0])) {
|
|
| 219 |
throw new AppException('Invalid index 0 for $block[] in '.str_replace(WB_PATH,'',$template_location).'. '
|
|
| 220 |
. 'The list must start with $block[1]. Please correct it!');
|
|
| 221 | 221 |
} |
| 222 |
|
|
| 222 |
foreach($block as $iIndex=>$sBlockTitle) {
|
|
| 223 |
if(trim($sBlockTitle) == '' ) {
|
|
| 224 |
$block[$iIndex] = $TEXT['BLOCK'].'_'.$iIndex; |
|
| 225 |
} |
|
| 226 |
} |
|
| 227 |
}else {
|
|
| 228 |
// Make our own menu list |
|
| 229 |
$block = array(1, $TEXT['MAIN']); |
|
| 230 |
} |
|
| 223 | 231 |
/*-- load css files with jquery --*/ |
| 224 | 232 |
// include jscalendar-setup |
| 225 | 233 |
$jscal_use_time = true; // whether to use a clock, too |
Also available in: Unified diff