Skip to content

Commit

Permalink
Remove default config value
Browse files Browse the repository at this point in the history
With the default config value the auto publish for all pages will not work.
  • Loading branch information
thomasflad committed Feb 15, 2016
1 parent fc29343 commit ea4e1c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/plugins/autopublish/autopublish.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
kirby()->hook('panel.page.create', 'run');

function run( $page ) {
$templates = c::get('autopublish.templates', array('project', 'item'));
$templates = c::get('autopublish.templates');
if (!$templates || in_array($page->template(), $templates)) {
try {
$page->toggle('last');
Expand Down

0 comments on commit ea4e1c9

Please sign in to comment.