Project

General

Profile

« Previous | Next » 

Revision 1986

Added by Dietmar about 11 years ago

! If the advanced option languages ​​Page was disabled or pages exist with one language only,
then all available languages ​​are shown to be selected in the User-Settings implemented in backend

View differences:

include.php
38 38
	function language_menu($sExtension = "auto")
39 39
	{
40 40
		global $wb;
41
		$oReg   = WbAdaptor::getInstance();
42
        if(!$oReg->PageLanguages) {return false;}
41 43
		$sExtension = strtolower($sExtension);
42 44
		switch($sExtension)
43 45
		{
......
48 50
				$sExtension = 'auto';
49 51
		}
50 52

  
51
		if ( $wb->page_id  < 1){ return false; }
53
		if ( ($wb->page_id  < 1) ){ return false; }
52 54
		$oPageLang = new m_MultiLingual_Lib();
53 55
        $oPageLang->setExtension($sExtension);
54 56
		$sRetVal = $oPageLang->getLangMenu();

Also available in: Unified diff