Skip to content

Commit

Permalink
Fixed layout file loading
Browse files Browse the repository at this point in the history
Placing the layout files in the 'inc' folder caused them to be
automatically included at load; this caused a multitude of PHP errors.
Layouts have been moved to the root plugin folder to fix this issue and
to make them easier to access for modifying.

Update to #55.
  • Loading branch information
John Stray committed Feb 13, 2015
1 parent 1142168 commit 8efaf60
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gs-blog/inc/frontEndFunctions.php
Expand Up @@ -98,10 +98,10 @@ function show_blog_post($slug, $excerpt=false) {

# Lets load the template now and let it put all this together.
if(isset($_GET['post'])) {
include(BLOGPLUGINFOLDER.'inc/layout-post.php');
include(BLOGPLUGINFOLDER.'layout-post.php');
return true;
} else {
include(BLOGPLUGINFOLDER.'inc/layout-list.php');
include(BLOGPLUGINFOLDER.'layout-list.php');
return true;
}
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8efaf60

Please sign in to comment.