LNG
This commit is contained in:
		@@ -15,7 +15,7 @@
 | 
			
		||||
            <?php
 | 
			
		||||
            $partial = new Partial('menu');
 | 
			
		||||
            $partial->prepare('item', 'rooms');
 | 
			
		||||
            $partial->prepare('lang',$LANG);
 | 
			
		||||
            $partial->prepare('langMng',$LANGMNG);
 | 
			
		||||
            $partial->prepare('debugMod',$DEBUGMOD);
 | 
			
		||||
            $partial->render();
 | 
			
		||||
            ?>
 | 
			
		||||
@@ -30,7 +30,7 @@
 | 
			
		||||
                        <div class="">
 | 
			
		||||
                            <h1><?php echo $room['name']; ?></h1>
 | 
			
		||||
                            <?php foreach ($room['reading'] as $key => $value) { ?>
 | 
			
		||||
                                <?php echo $LANG[$key] .": ".  $value; ?></br>
 | 
			
		||||
                                <?php echo $LANGMNG->get($key) .": ".  $value; ?></br>
 | 
			
		||||
                            <?php } ?>
 | 
			
		||||
                            <?php if (DEBUGMOD == 1) { ?>
 | 
			
		||||
                                <pre>
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,7 @@ class Rooms extends Template
 | 
			
		||||
	function __construct()
 | 
			
		||||
	{
 | 
			
		||||
		global $userManager;
 | 
			
		||||
		global $lang;
 | 
			
		||||
		global $langMng;
 | 
			
		||||
 | 
			
		||||
		if (!$userManager->isLogin()){
 | 
			
		||||
			header('Location: ' . BASEDIR . 'login');
 | 
			
		||||
@@ -15,9 +15,9 @@ class Rooms extends Template
 | 
			
		||||
		$template = new Template('rooms');
 | 
			
		||||
 | 
			
		||||
		$template->prepare('baseDir', BASEDIR);
 | 
			
		||||
			$template->prepare('debugMod', DEBUGMOD);
 | 
			
		||||
		$template->prepare('debugMod', DEBUGMOD);
 | 
			
		||||
		$template->prepare('title', 'Rooms');
 | 
			
		||||
		$template->prepare('lang', $lang);
 | 
			
		||||
		$template->prepare('langMng', $langMng);
 | 
			
		||||
 | 
			
		||||
		$roomsItems = [];
 | 
			
		||||
		$roomsData = RoomManager::getAllRooms();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user