| #115 | $default = $this->default_setting(); |
| #116 | $setting = $this->kv->get('navpro_setting'); |
| #117 | if(empty($setting) || !is_array($setting)) $setting = array(); |
| #118 | if(isset($setting['favicon_source']) && in_array($setting['favicon_source'], array('https://t3.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&size=128&url=%url%', 'https://t1.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&size=128&url=%url%'))) { |
| #119 | $setting['favicon_source'] = 'https://t0.gstatic.cn/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&size=128&url=%url%'; |
| #120 | } |
| #121 | if(isset($setting['favicon_save_mode']) && !in_array($setting['favicon_save_mode'], array('remote', 'local'))) $setting['favicon_save_mode'] = 'remote'; |
| #122 | if(isset($setting['screenshot_save_mode']) && !in_array($setting['screenshot_save_mode'], array('remote', 'local'))) $setting['screenshot_save_mode'] = 'remote'; |
| #123 | if(isset($setting['screenshot_width'])) $setting['screenshot_width'] = intval($setting['screenshot_width']) > 0 ? intval($setting['screenshot_width']) : 800; |
| #124 | if(isset($setting['screenshot_height'])) $setting['screenshot_height'] = intval($setting['screenshot_height']) > 0 ? intval($setting['screenshot_height']) : 450; |