exported from svn

This commit is contained in:
Jeena 2013-10-07 14:46:08 +02:00
commit 03995d3bc6
85 changed files with 14765 additions and 0 deletions

View file

@ -0,0 +1,28 @@
<?php
class JlogUpdate_111To112
{
function getForm($l)
{
return '<p>Dieses Script behebt ein paar fehlerhafte Einstellungen.'
.' Es ist keine Konfiguration notwendig.</p>';
}
function performUpdate($l, $settings)
{
// in jlog versions prior to jlog 1.1.2 we had escaping problems that caused
// a lot of backslashes in front of a double quote
// so we have to replace \" or \\" or \\\" and so on by ".
$data = array(
'jlog_description' => $settings->getValue('jlog_description'),
'jlog_website' => $settings->getValue('jlog_website'),
'jlog_publisher' => $settings->getValue('jlog_publisher')
);
foreach ($data as $key => $value) {
$value = preg_replace('=\\\\+"=', '"', $value);
$settings->setValue($key, $value);
}
return true;
}
}