original_string: 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');
        }
     }
code: 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');
        }
     }
code_tokens: 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' ) ; } }
docstring: Override the default dashboard page with the new stats one.
docstring_tokens: Override the default dashboard page with the new stats one .