diff --git a/cwm_companion.plugin.php b/cwm_companion.plugin.php index 79cf926..6dc5940 100644 --- a/cwm_companion.plugin.php +++ b/cwm_companion.plugin.php @@ -27,6 +27,7 @@ public function filter_plugin_config ( $actions, $plugin_id ) { if ( $plugin_id == $this->plugin_id() ) { $actions[] = _t('Update Flickr Cache'); + $actions[] = _t('Update Commit Stats Cache'); $actions[] = _t('Configure'); } @@ -50,6 +51,15 @@ public function action_plugin_ui ( $plugin_id, $action ) { break; + case _t('Update Commit Stats Cache'): + + self::update_commit_stats(); + + Session::notice( _t('Commit stats updated!') ); + Utils::redirect( URL::get( 'admin', 'page=plugins' ) ); + + break; + case _t('Configure'): $ui = new FormUI( 'cwm_companion' );