mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
default theme is used as fallback
This commit is contained in:
parent
33cee7eb76
commit
6c8870960f
@ -27,7 +27,7 @@ $config['db_password'] = 'stikked';
|
||||
* Folder name in htdocs/application/themes/
|
||||
*
|
||||
*/
|
||||
$config['theme'] = 'classic';
|
||||
$config['theme'] = 'default';
|
||||
|
||||
/**
|
||||
* Combine JS & CSS files (recommended)
|
||||
|
@ -28,8 +28,12 @@ class MY_Loader extends CI_Loader
|
||||
//view path
|
||||
$view_path = 'themes/' . $theme . '/views/' . $view . '.php';
|
||||
|
||||
//inform (todo: fallback, error if not found)
|
||||
log_message('debug', 'Using view "' . $view_path . '"');
|
||||
//fallback to default view if view in theme not found
|
||||
|
||||
if (!file_exists('application/' . $view_path))
|
||||
{
|
||||
$view_path = 'themes/default/views/' . $view . '.php';
|
||||
}
|
||||
|
||||
//return
|
||||
return $this->_ci_load(array(
|
||||
|
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 207 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
Loading…
x
Reference in New Issue
Block a user