|
@@ -66,12 +66,14 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
66
|
66
|
return $this->exists[$name] = false;
|
67
|
67
|
}
|
68
|
68
|
|
69
|
|
- function & instance(){
|
70
|
|
- static $instance;
|
71
|
|
- if( !isset($instance) ) {
|
72
|
|
- $instance = new plugin();
|
|
69
|
+ function instance(){
|
|
70
|
+ //$instance;
|
|
71
|
+ if( !isset($GLOBALS['$instance']) ) {
|
|
72
|
+ $GLOBALS['$instance'] = new plugin();
|
73
|
73
|
}
|
74
|
|
- return $instance;
|
|
74
|
+ //print_r($GLOBALS['$instance']);
|
|
75
|
+ //die();
|
|
76
|
+ return $GLOBALS['$instance'];
|
75
|
77
|
}
|
76
|
78
|
|
77
|
79
|
}
|