From b199011ed84967c10bc64d4b85b58c8b2299ad24 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 28 Jan 2016 12:25:18 -0600 Subject: [PATCH] Fix error in on_activate --- wp-sw-cache/wp-sw-cache-db.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-sw-cache/wp-sw-cache-db.php b/wp-sw-cache/wp-sw-cache-db.php index ff7c6f8..9bf276e 100644 --- a/wp-sw-cache/wp-sw-cache-db.php +++ b/wp-sw-cache/wp-sw-cache-db.php @@ -19,7 +19,7 @@ class SW_Cache_DB { public static function on_activate() { // Set default options. update_option('wp_sw_cache_enabled', false); - update_option('wp_sw_cache_name', $this->$cache_prefix.'-'.time()); + update_option('wp_sw_cache_name', self::$cache_prefix.'-'.time()); update_option('wp_sw_cache_files', array()); }