Explorar el Código

fix strangeness

Andy Baugh hace 5 años
padre
commit
e00c732376
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      lib/Trog/Routes/HTML.pm

+ 7 - 7
lib/Trog/Routes/HTML.pm

@@ -285,13 +285,13 @@ sub config ($query, $input, $render_cb) {
     $query->{failure} //= -1;
 
     return $render_cb->('config.tx', {
-        title         => 'Configure tCMS',
-        stylesheets   => $css,
-        scripts       => $js,
-        themes        => _get_themes(),
-        data_models   => _get_data_models(),
-        current_theme => $conf->param('general.theme'),
-        current_data_model => $conf->param('general.data_model'),
+        title              => 'Configure tCMS',
+        stylesheets        => $css,
+        scripts            => $js,
+        themes             => _get_themes(),
+        data_models        => _get_data_models(),
+        current_theme      => $conf->param('general.theme') // '',
+        current_data_model => $conf->param('general.data_model') // 'DUMMY',
         route       => '/about',
         category    => '/about',
         types       => ['profile'],