| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | */ |
| 28 | 28 | class Visualizer_Plugin { |
| 29 | 29 | |
| 30 | 30 | const NAME = 'visualizer'; |
| 31 | - const VERSION = '4.0.7'; | |
| 31 | + const VERSION = '3.11.7'; | |
| 32 | 32 | |
| 33 | 33 | // custom post types |
| 34 | 34 | const CPT_VISUALIZER = 'visualizer'; |
| 35 | 35 | |
| @@ -221,12 +221,12 @@ | ||
| 221 | 221 | * @since 1.0.0 |
| 222 | 222 | * |
| 223 | 223 | * @access public |
| 224 | 224 | * |
| 225 | - * @param string $class_name The name of the module to use in the plugin. | |
| 225 | + * @param string $class The name of the module to use in the plugin. | |
| 226 | 226 | */ |
| 227 | - public function setModule( $class_name ) { | |
| 228 | - $this->_modules[ $class_name ] = new $class_name( $this ); | |
| 227 | + public function setModule( $class ) { | |
| 228 | + $this->_modules[ $class ] = new $class( $this ); | |
| 229 | 229 | } |
| 230 | 230 | |
| 231 | 231 | /** |
| 232 | 232 | * Private clone method. |
| @@ -240,11 +240,12 @@ | ||
| 240 | 240 | |
| 241 | 241 | /** |
| 242 | 242 | * For local testing, overrides the 'themeisle_log_event' hook and redirects to error.log. |
| 243 | 243 | */ |
| 244 | - final public function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 244 | + final function themeisle_log_event_debug( $name, $message, $type, $file, $line ) { | |
| 245 | 245 | if ( Visualizer_Plugin::NAME !== $name ) { |
| 246 | 246 | return; |
| 247 | 247 | } |
| 248 | 248 | error_log( sprintf( '%s (%s): %s in %s:%s', $name, $type, $message, $file, $line ) ); |
| 249 | 249 | } |
| 250 | + | |
| 250 | 251 | } |