Fixed xsstrust plugin issue #456 not being run properly
This commit is contained in:
parent
eed1fcde8e
commit
b6a4c2998d
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
0.7:
|
||||
----
|
||||
Fixed set_config() parameters for current s9y cure
|
||||
Fixed wrong variable for current authorid preventing htmlpurifier to properly being executed
|
||||
|
||||
0.6:
|
||||
----
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ class serendipity_event_xsstrust extends serendipity_event
|
|||
'smarty' => '2.6.7',
|
||||
'php' => '4.1.0'
|
||||
));
|
||||
$propbag->add('version', '0.6');
|
||||
$propbag->add('version', '0.7');
|
||||
$propbag->add('event_hooks', array(
|
||||
'frontend_display' => true,
|
||||
'backend_media_check' => true,
|
||||
|
@ -93,7 +93,7 @@ class serendipity_event_xsstrust extends serendipity_event
|
|||
}
|
||||
}
|
||||
|
||||
function set_config($name, $value) {
|
||||
function set_config($name, $value, $implodekey = '^') {
|
||||
$fname = $this->instance . '/' . $name;
|
||||
|
||||
if (is_array($value)) {
|
||||
|
@ -150,7 +150,7 @@ class serendipity_event_xsstrust extends serendipity_event
|
|||
if (isset($hooks[$event])) {
|
||||
switch($event) {
|
||||
case 'backend_entry_presave':
|
||||
if (serendipity_db_bool($this->get_config('htmlpurifier')) && !isset($this->trusted_authors[$eventData['authorid']])) {
|
||||
if (serendipity_db_bool($this->get_config('htmlpurifier')) && !isset($this->trusted_authors[$serendipity['authorid']])) {
|
||||
require_once dirname(__FILE__) . '/htmlpurifier-4.6.0-standalone/HTMLPurifier.standalone.php';
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('Cache.SerializerPath', $serendipity['serendipityPath'] . PATH_SMARTY_COMPILE);
|
||||
|
|
Loading…
Reference in a new issue