Skip to content

Commit f5e06dc

Browse files
authored
Merge pull request #1006 from tarasfrompir/patch-4
Update saverestore.class.php
2 parents 0bcb3c0 + 31d7f89 commit f5e06dc

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

Diff for: languages/default.php

+1
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@
369369

370370

371371
'AUTO_UPDATE_PERIOD' => 'Auto update period',
372+
'UPDATEARHIVE_DONE' => 'Downloading archive',
372373
'POLLING_PERIOD' => 'Polling period',
373374

374375

Diff for: languages/ru.php

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@
364364

365365

366366
'AUTO_UPDATE_PERIOD' => 'Период автообновления',
367+
'UPDATEARHIVE_DONE' => 'Скачиваем архив',
367368
'POLLING_PERIOD' => 'Период опроса',
368369

369370

Diff for: languages/ua.php

+1
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@
364364

365365

366366
'AUTO_UPDATE_PERIOD' => 'Період автооновления',
367+
'UPDATEARHIVE_DONE' => 'Скачуємо архів',
367368
'POLLING_PERIOD' => 'Період опитування',
368369

369370

Diff for: modules/saverestore/saverestore.class.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
class saverestore extends module
44
{
5+
var $mode;
6+
var $view_mode;
7+
var $edit_mode;
8+
var $ajax;
9+
510
/**
611
* saverestore
712
*
@@ -498,7 +503,7 @@ function getLatest(&$out, $iframe = 0, $with_backup = 1)
498503
}
499504

500505
if ($iframe) {
501-
echonow('<div><i style="font-size: 7pt;" class="glyphicon glyphicon-chevron-right"></i> Скачиваем архив '.$url.'</div>');
506+
echonow('<div><i style="font-size: 7pt;" class="glyphicon glyphicon-chevron-right"></i> '.LANG_UPDATEARHIVE_DONE . ' '. $url.'</div>');
502507
}
503508

504509
$ch = curl_init();
@@ -1324,6 +1329,9 @@ function upload(&$out, $iframe = 0)
13241329
exec('tar xzvf ../' . $file, $output, $res);
13251330
}
13261331

1332+
$UpdatesDir = scandir(DOC_ROOT . DIRECTORY_SEPARATOR . 'cms/saverestore/temp',1);
1333+
$folder = DIRECTORY_SEPARATOR . $UpdatesDir[0];
1334+
13271335
if ($iframe) {
13281336
echonow('<div><i style="font-size: 7pt;" class="glyphicon glyphicon-usd"></i> '.LANG_UPDATEBACKUP_DONE.'</div>');
13291337
}

0 commit comments

Comments
 (0)