Porting plugin engine to PHP4
parent
d29e8298aa
commit
fa676b0fa4
|
|
@ -233,7 +233,7 @@ if ($user->isAdmin()) {
|
||||||
<option value="0" <?php if(!$conf->check_version) echo "selected=\"selected\""; ?>><?php echo __("Deactive")?></option>
|
<option value="0" <?php if(!$conf->check_version) echo "selected=\"selected\""; ?>><?php echo __("Deactive")?></option>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php print_r($trigger);echo "<br>";die("Antes de trigger->call add options panel");
|
||||||
$trigger->call('add_options_panel');
|
$trigger->call('add_options_panel');
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -66,12 +66,14 @@ if(!defined('entry') || !entry) die('Not a valid page');
|
||||||
return $this->exists[$name] = false;
|
return $this->exists[$name] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function & instance(){
|
function instance(){
|
||||||
static $instance;
|
//$instance;
|
||||||
if( !isset($instance) ) {
|
if( !isset($GLOBALS['$instance']) ) {
|
||||||
$instance = new plugin();
|
$GLOBALS['$instance'] = new plugin();
|
||||||
}
|
}
|
||||||
return $instance;
|
//print_r($GLOBALS['$instance']);
|
||||||
|
//die();
|
||||||
|
return $GLOBALS['$instance'];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ class kodrs extends plugins {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static function replace_with_geshi($matches) {
|
function replace_with_geshi($matches) {
|
||||||
$lang = strtolower($matches[1]) ;
|
$lang = strtolower($matches[1]) ;
|
||||||
$code = trim($matches[2]);
|
$code = trim($matches[2]);
|
||||||
$geshi = new geshi($code, (isset($lang)) ? $lang : "");
|
$geshi = new geshi($code, (isset($lang)) ? $lang : "");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue