addBehavior('adminBlogPreferencesForm', ['adminSimplyFavicon', 'adminBlogPreferencesForm']); $core->addBehavior('adminBeforeBlogSettingsUpdate', ['adminSimplyFavicon', 'adminBeforeBlogSettingsUpdate']); class adminSimplyFavicon { public static function adminBlogPreferencesForm($core, $blog_settings) { echo '

Favicon

' . '

' . '

' . __("You must place an image called favicon.png or .jpg or .ico into your blog's public directory.") . '

' . '
'; } public static function adminBeforeBlogSettingsUpdate($blog_settings) { $blog_settings->system->put('simply_favicon', !empty($_POST['simply_favicon'])); } }