Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Commit

Permalink
Hotfix for #2
Browse files Browse the repository at this point in the history
`index()` is breaking multi-lang websites for some reason.
Unfortunately, this means that `findBy()` will only search the root
content directory.
  • Loading branch information
calebgrove committed Mar 28, 2017
1 parent 2c7cc24 commit 90db9d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content-viewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


// If the page doesn't exist yet, create it.
if(!site()->index()->findBy('intendedTemplate', 'content-viewer')) {
if(!site()->findBy('intendedTemplate', 'content-viewer')) {
site()->create('content-viewer', 'content-viewer', array(
'title' => '',
'text' => ''
Expand Down

0 comments on commit 90db9d4

Please sign in to comment.