Browse Source

fixed use login, logout from Theme

Piotr Labudda 7 years ago
parent
commit
018da1ea4c
1 changed files with 8 additions and 2 deletions
  1. 8 2
      SE/se-lib/UI.php

+ 8 - 2
SE/se-lib/UI.php

@@ -41,9 +41,7 @@ class UI {
 	}
 
 	public static function endHtml() {
-		DBG::log('UI::dol...');
 		Theme::footer();
-		DBG::log('UI::dol .');
 		echo "\n</body></html>";
 	}
 
@@ -63,6 +61,14 @@ class UI {
 			Theme::home($data);
 			return;
 		}
+		if ('login' === $tmplName) { // TODO: replace UI::loadTemplate('login') => Theme::home($data)
+			Theme::login($data);
+			return;
+		}
+		if ('logout' === $tmplName) { // TODO: replace UI::loadTemplate('logout') => Theme::home($data)
+			Theme::logout($data);
+			return;
+		}
 		if (is_array($data) && !empty($data)) {
 			extract($data);
 		}