Project

General

Profile

« Previous | Next » 

Revision 1970

Added by Dietmar about 11 years ago

! MultiLingual set svn properties to all files
  1. MultiLingual typofix in methode updateDefaultPagesCode
    ! Pages settings fix output page_code treelist (not ready yet)

View differences:

settings.php
428 428
		$aTplBlockData['PAGE_CODE_LABEL_TEXT'] = $mLang->TEXT_PAGE_CODE;
429 429
		$aTplBlockData['PAGE_CODE_UPDATE_URL'] = WB_REL.'/modules/MultiLingual/update_keys.php?page_id='.$page_id;
430 430
	// get the root element(level 0) of current page with same language  in same menu
431
		$sql =  'SELECT `page_id` FROM `'.$oDb->TablePrefix.'pages` '
432
		     .  'WHERE `language`=\''.DEFAULT_LANGUAGE.'\' '
433
		     .         'AND `level`=0 ';
434
		if(defined('MULTIPLE_MENUS') && MULTIPLE_MENUS == 'true') {
435
			$sql .=    'AND `menu`='.$aCurrentPage['menu'].' ';
436
		}
437
		$sql .= 'ORDER BY `position` ASC';
431
//		$sql =  'SELECT `page_id` FROM `'.$oDb->TablePrefix.'pages` '
432
//		     .  'WHERE `language`=\''.DEFAULT_LANGUAGE.'\' '
433
//		     .         'AND `level`=0 ';
434
//		if(defined('MULTIPLE_MENUS') && MULTIPLE_MENUS == 'true') {
435
////			$sql .=    'AND `menu`='.$aCurrentPage['menu'].' ';
436
//		}
437
//		$sql .= 'ORDER BY `position` ASC';
438
        $sLangKey = DEFAULT_LANGUAGE;
439
        $sql = 'SELECT DISTINCT `page_id` '
440
             . 'FROM `'.$oDb->TablePrefix.'pages` '
441
             . 'WHERE `level`= \'0\' '
442
             .   'AND `root_parent`=`page_id` '
443
             .   'AND `visibility`!=\'none\' '
444
             .   'AND `visibility`!=\'hidden\' '
445
             .   ( ($sLangKey!='') ? ' AND `language` = \''.$sLangKey.'\'' : '')
446
             .   'GROUP BY `language` '
447
             .   'ORDER BY `position`';
438 448
		$iLangStartPageId = $oDb->get_one($sql);
439 449
	// read the tree of the found root element
440 450
		$oPageList = new a_pages_SmallRawPageTree();

Also available in: Unified diff