Prechádzať zdrojové kódy

Adding 'fallback' template setting; default is for filling a void in user prefs, whereas fallback is the last-resort template set to find missing template files when the code is trying to display a template

pdontthink 19 rokov pred
rodič
commit
99f4d8eded
2 zmenil súbory, kde vykonal 8 pridanie a 0 odobranie
  1. 7 0
      config/conf.pl
  2. 1 0
      config/config_default.php

+ 7 - 0
config/conf.pl

@@ -4155,6 +4155,13 @@ sub save_data {
 
         if ( $templateset_default eq '' ) { $templateset_default = '0'; }
         print CF "\$templateset_default = $templateset_default;\n";
+# FIXME: need to make this a setting the user can change herein
+#        This REALLY needs to be done, since the index of the "default"
+#        set cannot always be predicted!
+#        Heck, why are default and fallback indexes?  If we make them
+#        into the ID strings, then it would not cause such issues
+$templateset_fallback = 0;
+        print CF "\$templateset_fallback = $templateset_fallback;\n";
 
         for ( $count = 0 ; $count <= $#templateset_name ; $count++ ) {
             print CF "\$aTemplateSet[$count]['ID'] = '" . $templateset_id[$count] . "';\n";

+ 1 - 0
config/config_default.php

@@ -857,6 +857,7 @@ $theme[51]['NAME'] = 'Turquoise';
  * @global integer $templateset_default
  */
 $templateset_default = 0;
+$templateset_fallback = 0;
 
 $aTemplateSet[0]['ID'] = 'default';
 $aTemplateSet[0]['NAME'] = 'Default';