mirror of
https://github.com/10h30/wp-strava.git
synced 2026-07-13 11:46:41 +09:00
Added option to clear cache
This commit is contained in:
@@ -37,7 +37,7 @@ class WPStrava {
|
||||
}
|
||||
|
||||
public function __get( $name ) {
|
||||
//on-demand classes
|
||||
// On-demand classes.
|
||||
if ( $name == 'api' ) {
|
||||
return $this->get_api();
|
||||
}
|
||||
@@ -56,7 +56,7 @@ class WPStrava {
|
||||
public function get_api() {
|
||||
if ( ! $this->api ) {
|
||||
require_once WPSTRAVA_PLUGIN_DIR . 'lib/API.class.php';
|
||||
$this->api = new WPStrava_API( get_option('strava_token') );
|
||||
$this->api = new WPStrava_API( get_option( 'strava_token' ) );
|
||||
}
|
||||
|
||||
return $this->api;
|
||||
|
||||
Reference in New Issue
Block a user