exported from svn
This commit is contained in:
commit
03995d3bc6
85 changed files with 14765 additions and 0 deletions
28
scripts/update/111To112.php
Normal file
28
scripts/update/111To112.php
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue