diff --git a/bin/update.sh b/bin/update.sh index d35e1eb0d..91af6413d 100755 --- a/bin/update.sh +++ b/bin/update.sh @@ -22,7 +22,6 @@ define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); require_once INSTALL_PATH . 'program/include/clisetup.php'; -require_once INSTALL_PATH . 'installer/rcube_install.php'; // get arguments $opts = rcube_utils::get_opt(array('v' => 'version', 'y' => 'accept')); @@ -36,7 +35,7 @@ if (!$opts['version']) { $opts['version'] = RCMAIL_VERSION; } -$RCI = rcube_install::get_instance(); +$RCI = rcmail_install::get_instance(); $RCI->load_config(); if ($RCI->configured) { diff --git a/installer/check.php b/installer/check.php index d4c3f6685..31b4c2955 100644 --- a/installer/check.php +++ b/installer/check.php @@ -1,6 +1,6 @@ load_config(); if (isset($_GET['_getconfig'])) { diff --git a/installer/test.php b/installer/test.php index 5d28d5f57..7a6b1b6da 100644 --- a/installer/test.php +++ b/installer/test.php @@ -1,6 +1,6 @@ config[$name]; if ($name == 'des_key' && !$this->configured && !isset($_REQUEST["_$name"])) - $value = rcube_install::random_key(24); + $value = self::random_key(24); return $value !== null && $value !== '' ? $value : $default; } @@ -214,7 +214,7 @@ class rcube_install $value = ''; } else if ($prop == 'default_host' && is_array($value)) { - $value = rcube_install::_clean_array($value); + $value = self::_clean_array($value); if (count($value) <= 1) $value = $value[0]; } @@ -251,7 +251,7 @@ class rcube_install foreach ($config as $prop => $value) { // copy option descriptions from existing config or defaults.inc.php $out .= $this->comments[$prop]; - $out .= "\$config['$prop'] = " . rcube_install::_dump_var($value, $prop) . ";\n\n"; + $out .= "\$config['$prop'] = " . self::_dump_var($value, $prop) . ";\n\n"; } return $out; @@ -451,9 +451,9 @@ class rcube_install function check_mime_detection() { $files = array( - 'installer/images/roundcube_logo.png' => 'image/png', + 'skins/larry/images/roundcube_logo.png' => 'image/png', 'program/resources/blank.tif' => 'image/tiff', - 'skins/larry/images/buttons.gif' => 'image/gif', + 'program/resources/blocked.gif' => 'image/gif', 'skins/larry/README' => 'text/plain', ); @@ -689,7 +689,7 @@ class rcube_install } if ($isnum) - return 'array(' . join(', ', array_map(array('rcube_install', '_dump_var'), $var)) . ')'; + return 'array(' . join(', ', array_map(array('rcmail_install', '_dump_var'), $var)) . ')'; } } diff --git a/program/lib/Roundcube/rcube.php b/program/lib/Roundcube/rcube.php index 7d28dce13..707929951 100644 --- a/program/lib/Roundcube/rcube.php +++ b/program/lib/Roundcube/rcube.php @@ -1207,8 +1207,8 @@ class rcube } // installer - if (class_exists('rcube_install', false)) { - $rci = rcube_install::get_instance(); + if (class_exists('rcmail_install', false)) { + $rci = rcmail_install::get_instance(); $rci->raise_error($arg); return; }