Skip to content

Commit

Permalink
Minor touch ups
Browse files Browse the repository at this point in the history
  • Loading branch information
daftspunk committed Mar 3, 2015
1 parent 2e94921 commit 1ab8858
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@

'redis' => array(

'cluster' => true,
'cluster' => false,

'default' => array(
'host' => '127.0.0.1',
Expand Down
2 changes: 2 additions & 0 deletions modules/backend/widgets/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,8 @@ protected function makeFormWidget($field)
}

$widget = new $widgetClass($this->controller, $this->model, $field, $widgetConfig);
$widget->previewMode = $this->previewMode;

return $this->formWidgets[$field->fieldName] = $widget;
}

Expand Down
1 change: 0 additions & 1 deletion modules/backend/widgets/form/partials/_field_widget.htm
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!-- Widget -->
<?php
$widget = $this->makeFormWidget($field);
$widget->previewMode = $this->previewMode;
?>
<?= $widget->render() ?>
2 changes: 1 addition & 1 deletion themes/demo/partials/explain/ajax.htm
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</p>

<pre>{% filter escape %}
{{ "{% if result != null %}" }}
{{ "{% if result %}" }}
The result is {{ "{{ result }}" }}.
{{ "{% else %}" }}
Click the <em>Calculate</em> button to find the answer.
Expand Down

0 comments on commit 1ab8858

Please sign in to comment.