Project

General

Profile

« Previous | Next » 

Revision 49

Added by stefan about 19 years ago

When PAGE_CONTENT is defined, other blocks are still shown

View differences:

class.frontend.php
418 418
		// Make sure block is numeric
419 419
		if(!is_numeric($block)) { $block = 1; }
420 420
		// Include page content
421
		if(!defined('PAGE_CONTENT')) {
421
		if(!defined('PAGE_CONTENT') OR block!=1) {
422 422
			// First get all sections for this page
423 423
			$query_sections = $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE page_id = '".PAGE_ID."' AND block = '$block' ORDER BY position");
424 424
			if($query_sections->numRows() > 0) {
......
430 430
				}
431 431
			}
432 432
		} else {
433
			if($block == 1) {
434
				require(PAGE_CONTENT);
435
			}
433
			require(PAGE_CONTENT);
436 434
		}
437 435
	}
438 436

  

Also available in: Unified diff