nsITobin 2 years ago
parent
commit
d3c47d10f8
2 changed files with 11 additions and 11 deletions
  1. 10 10
      base/src/utils.php
  2. 1 1
      index.php

+ 10 - 10
base/src/utils.php

@@ -204,17 +204,17 @@ class gRegistryUtils {
       ),
       'console' => array(
         'output' => array(
-          'skin' => 'default',
           'contentType' => ini_get('default_mimetype'),
+          'httpHeaders' => EMPTY_ARRAY,
         ),
         'content' => array(
-          'skin'        => kDefaultSkinName,
-          'skinPath'    => kDefaultSkinPath,
-          'template'    => null,
-          'stylesheet'  => null,
-          'mainmenu'    => kDefaultMenu,
-          'commandbar'  => kDefaultMenu,
-          'statustext'  => 'Done',
+          'skin'          => kDefaultSkinName,
+          'skinPath'      => kDefaultSkinPath,
+          'template'      => null,
+          'stylesheet'    => null,
+          'mainmenu'      => kDefaultMenu,
+          'commandbar'    => kDefaultMenu,
+          'statustext'    => 'Done',
         ),
       ),
     );
@@ -518,7 +518,7 @@ class gConsoleUtils {
   /******************************************************************************************************************
   * Simply prints output and sends header if not cli and exits
   ******************************************************************************************************************/
-  public static function output($aContent, $aHeader = null) {
+  public static function output(mixed $aContent, $aHeader = null) {
     $content = null;
 
     if (is_array($aContent)) {
@@ -612,7 +612,7 @@ class gConsoleUtils {
       $siteName = $sectionName . DASH_SEPARATOR . $siteName;
     }
 
-    $isTestCase = (!$metadata('title') && gRegistry('special.testCase') && gRegistry('app.component') == kSpecialComponent);
+    $isTestCase = (!$metadata('title') && gRegistry('special.testCase') && gRegistryUtils::Component(kSpecialComponent));
 
     $substs = array(
       '{$SITE_STYLESHEET}'  => $stylesheet ?? EMPTY_STRING,

+ 1 - 1
index.php

@@ -18,7 +18,7 @@ const kAppName = 'Metropolis';
 
 // These are flags that will either default to or disable the special component.
 // They are optional and do NOT need to be defined if not set to true.
-const kAppIsSpecialComponent = false;
+const kAppIsSpecialComponent = true;
 /* const kDisableSpecialComponent = true; */
 
 // Load fundamental utils