Skip to content

Commit

Permalink
fixed issue with site_docs and a custom documentation layout
Browse files Browse the repository at this point in the history
  • Loading branch information
David McReynolds committed Oct 17, 2014
1 parent b367cf1 commit c92ca7f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fuel/modules/fuel/controllers/site_docs.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@ public function _remap()
{
// use app module which is the application directory
$vars['body'] = $this->load->module_view('app', '_docs/'.$page, $vars, TRUE);
$vars['page_title'] = $this->config->item('site_name', 'fuel');

// get layout page
if (file_exists(APPPATH.'views/_layouts/documentation.php'))
{
$this->load->module_view(NULL, '_layouts/documentation', $vars);
define('FUELIFY', FALSE);
$this->load->module_view('app', '_layouts/documentation', $vars);
}
else if (file_exists(FUEL_PATH.'views/_layouts/documentation'.EXT))
else if (file_exists(FUEL_PATH.'views/_layouts/documentation'.EXT) AND defined('USER_GUIDE_PATH'))
{
$vars['page_title'] = $this->config->item('site_name', 'fuel');
$this->load->view('_layouts/documentation', $vars);
$this->load->module_view(FUEL_FOLDER, '_layouts/documentation', $vars);
}
else
{
Expand Down

0 comments on commit c92ca7f

Please sign in to comment.