Browse Source

Make content just output on SAPI_CLI\n Consider adding a switch

nsITobin 4 months ago
parent
commit
3bdd435ca1
2 changed files with 1 additions and 1 deletions
  1. 1 1
      base/src/utils.php
  2. 0 0
      base/test/.exists

+ 1 - 1
base/src/utils.php

@@ -1426,7 +1426,7 @@ class gMtzConsole {
     $template = gMtzRuntime::ReadFile(kDefaultSkinPath . kSlash . 'template.xhtml');
     $stylesheet = gMtzRuntime::ReadFile(kDefaultSkinPath . kSlash . 'stylesheet.css');
 
-    if (!$template) {
+    if (!$template || SAPI_IS_CLI) {
       gMtzConsole::Output(['content' => $aContent, 'title' => $aMetadata['title'] ?? 'Output']);
     }
 

+ 0 - 0
base/test/.exists