ソースを参照

mv SE_Layout to UI in Msgs route

Piotr Labudda 6 年 前
コミット
beb4d90de3
1 ファイル変更13 行追加13 行削除
  1. 13 13
      SE/se-lib/Route/UserMsgs.php

+ 13 - 13
SE/se-lib/Route/UserMsgs.php

@@ -581,18 +581,18 @@ function tblMsgsLoadMoreRows(n) {
 		if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
 		if (empty($usrLogin)) throw new HttpException("Błęny user login!", 404);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$msg = $this->_getMsg($idMsg, $usrLogin);
 			$this->_markAsRead($msg);
 			$this->viewMsg($msg);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
 		}
 
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	function viewAction() {
@@ -601,17 +601,17 @@ function tblMsgsLoadMoreRows(n) {
 		if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
 		if (empty($usrLogin)) throw new HttpException("Błęny user login", 404);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$msg = $this->_getMsg($idMsg, $usrLogin);
 			$this->viewMsg($msg);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
 		}
 
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	function _getMsg($idMsg, $usrLogin) {
@@ -1100,16 +1100,16 @@ function tblMsgsLoadMoreRows(n) {
 		if ($idMsg <= 0) throw new HttpException("Wiadomość nie istnieje!", 404);
 		if (empty($usrLogin)) throw new HttpException("Błęny user login", 404);
 
-		SE_Layout::gora();
-		SE_Layout::menu();
+		UI::gora();
+		UI::menu();
 
 		try {
 			$msg = $this->_getMsg($idMsg, $usrLogin);
 			$msgsRoute = Router::getRoute('Msgs');
 			$msgsRoute->removeTableRecordMsg($idMsg);
 		} catch (Exception $e) {
-			SE_Layout::alert('danger', $e->getMessage() . ' #' . $e->getLine());
-			SE_Layout::dol();
+			UI::alert('danger', $e->getMessage() . ' #' . $e->getLine());
+			UI::dol();
 			exit;
 		}
 		?>
@@ -1119,7 +1119,7 @@ function tblMsgsLoadMoreRows(n) {
 	</div>
 </div>
 <?php
-		SE_Layout::dol();
+		UI::dol();
 	}
 
 	function removeMsgPostTask($args) {