fix in the widget and addition to gitignore which will ignore the ~ files, so greeks don't commit wp-config.php~ file ;)