Skip to content

Commit

Permalink
namespace cdn class
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Prosser committed Sep 29, 2013
1 parent 7b1ddfb commit 047363d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dms-plugin-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin Name: DMS Professional Tools
Plugin URI: http://www.pagelines.com/
Description: Pro member code and utilities for PageLines DMS.
Version: 1.1
Version: 1.2
Author: PageLines
PageLines: true
Expand Down Expand Up @@ -47,7 +47,7 @@ function __construct() {
if( '1' === $this->settings['settingsgeneral_cdn_cdn-enabled'] ) {
define( 'WP_STACK_CDN_DOMAIN', $this->settings['settingsgeneral_cdn_cdn-url'] );
define( 'WP_STAGE', 'production' );
new WP_Stack_CDN_Plugin;
new PL_WP_Stack_CDN_Plugin;
}
new DMS_Hacks;
}
Expand Down
2 changes: 1 addition & 1 deletion libs/class.cdn.libs.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
if(!class_exists('WP_Stack_Plugin')){class WP_Stack_Plugin{function hook($h){$p=10;$m=$this->sanitize_method($h);$b=func_get_args();unset($b[0]);foreach((array)$b as $a){if(is_int($a))$p=$a;else $m=$a;}return add_action($h,array($this,$m),$p,999);}private function sanitize_method($m){return str_replace(array('.','-'),array('_DOT_','_DASH_'),$m);}}}

// The plugin
class WP_Stack_CDN_Plugin extends WP_Stack_Plugin {
class PL_WP_Stack_CDN_Plugin extends WP_Stack_Plugin {
public static $instance;
public $site_domain;
public $cdn_domain;
Expand Down

0 comments on commit 047363d

Please sign in to comment.