public function Gdn_Dispatcher_BeforeDispatch_Handler($Sender) {
      $Enabled = C('Garden.Analytics.Enabled', TRUE);

      if ($Enabled && !Gdn::PluginManager()->HasNewMethod('SettingsController', 'Index')) {
         Gdn::PluginManager()->RegisterNewMethod('VanillaStatsPlugin', 'StatsDashboard', 'SettingsController', 'Index');
      }
   }
public function Gdn_Dispatcher_BeforeDispatch_Handler($Sender) {
      $Enabled = C('Garden.Analytics.Enabled', TRUE);

      if ($Enabled && !Gdn::PluginManager()->HasNewMethod('SettingsController', 'Index')) {
         Gdn::PluginManager()->RegisterNewMethod('VanillaStatsPlugin', 'StatsDashboard', 'SettingsController', 'Index');
      }
   }
public function Gdn_Dispatcher_BeforeDispatch_Handler ( $ Sender ) { $ Enabled = C ( 'Garden.Analytics.Enabled' , TRUE ) ; if ( $ Enabled && ! Gdn :: PluginManager ( ) -> HasNewMethod ( 'SettingsController' , 'Index' ) ) { Gdn :: PluginManager ( ) -> RegisterNewMethod ( 'VanillaStatsPlugin' , 'StatsDashboard' , 'SettingsController' , 'Index' ) ; } }
Override the default dashboard page with the new stats one.
Override the default dashboard page with the new stats one .