Explorar o código

fixed use login, logout from Theme

Piotr Labudda %!s(int64=7) %!d(string=hai) anos
pai
achega
018da1ea4c
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  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);
 		}