mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +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);
|
$logo = $CI->Themes_model->get_logo_from_theme($theme, $logo_location);
|
||||||
|
|
||||||
|
if ($logo != null) {
|
||||||
return $logo;
|
return $logo;
|
||||||
|
} else {
|
||||||
|
return 'no_logo_found';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ class Themes_model extends CI_Model {
|
|||||||
|
|
||||||
return ($value !== null) ? (string) $value : null;
|
return ($value !== null) ? (string) $value : null;
|
||||||
} else {
|
} else {
|
||||||
|
log_message('error', 'get_logo_from_theme failed');
|
||||||
return null;
|
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