瀏覽代碼

Add title environnement

stany.ferer 1 年之前
父節點
當前提交
ff086fd642
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      core/class/debug.class.php
  2. 1 1
      core/views/_cms.head.php

+ 4 - 0
core/class/debug.class.php

@@ -198,4 +198,8 @@ class debug
     public static function getBadge(string $_link,string $_label){
         return '<a href="'. $_link .'" target="_blank" class="badge debug-badge">'. $_label .'</a>';
     }
+
+    public static function printEnvironnement(){
+        echo (ENVIRONNEMENT != "PROD") ? " [ " . ENVIRONNEMENT . "]" : NULL;
+    }
 }

+ 1 - 1
core/views/_cms.head.php

@@ -3,7 +3,7 @@
     <head>
         <meta charset="UTF-8">
         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-        <title>CSE Invent :. CMS</title>
+        <title>CSE Invent :. CMS<?php debug::printEnvironnement() ?></title>
 
         <?php pwa::printManifeste(); ?>