mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
added some error handler
This commit is contained in:
@@ -131,7 +131,11 @@ class OptionsLib {
|
||||
|
||||
$logo = $CI->Themes_model->get_logo_from_theme($theme, $logo_location);
|
||||
|
||||
return $logo;
|
||||
if ($logo != null) {
|
||||
return $logo;
|
||||
} else {
|
||||
return 'no_logo_found';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -64,6 +64,7 @@ class Themes_model extends CI_Model {
|
||||
|
||||
return ($value !== null) ? (string) $value : null;
|
||||
} else {
|
||||
log_message('error', 'get_logo_from_theme failed');
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
BIN
assets/logo/no_logo_found.png
Normal file
BIN
assets/logo/no_logo_found.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.8 MiB |
Reference in New Issue
Block a user