Ver código fonte

Add title environnement

stany.ferer 1 ano atrás
pai
commit
ff086fd642
2 arquivos alterados com 5 adições e 1 exclusões
  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(); ?>