Skip to content

Commit

Permalink
Webasyst Framework v.2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonix committed Sep 20, 2021
1 parent 0f46728 commit 4015115
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion wa-apps/installer/lib/classes/installerHelper.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static function flushCache()
if ($errors) {
return $errors;
} else {
return array(_ws('Unable to delete certain files'));
return array(_ws('Unable to delete certain files.'));
}
} else {
return array(); // went fine the second time
Expand Down
4 changes: 2 additions & 2 deletions wa-apps/installer/lib/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
'description' => 'Install new apps from the Webasyst Store',
'icon' => 'img/installer.svg',
'mobile' => false,
'version' => '2.3.0',
'critical' => '2.3.0',
'version' => '2.3.1',
'critical' => '2.3.1',
'system' => true,
'vendor' => 'webasyst',
'csrf' => true,
Expand Down
4 changes: 2 additions & 2 deletions wa-apps/installer/templates/actions/settings/Settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ <h1>[`System settings`]</h1>

{$_locale = [
'confirm_disconnect' => _w('Confirm disconnection from the beta testing of this product'),
'disconnect' => _w('[`Disconnect`]'),
'cancel' => _w('[`Cancel`]')
'disconnect' => _w('Disconnect'),
'cancel' => _w('Cancel')
]}

<script type="text/javascript">
Expand Down
4 changes: 2 additions & 2 deletions wa-system/api/waAPIController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ protected function checkToken()
$token = waRequest::request('access_token', null, 'string');
if (!$token) {
if (function_exists('getallheaders')) {
$headers = getallheaders();
$token = ifset($headers, 'Authorization', null);
$headers = array_change_key_case(getallheaders(), CASE_LOWER);
$token = ifset($headers, 'authorization', null);
}
if (!$token) {
$token = waRequest::server('HTTP_AUTHORIZATION', null, 'string');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ class webasystApiTokenHeadlessController extends waController
* @var waWebasystIDClientManager
*/
protected $client_manager;
protected $url_provider;

public function __construct()
{
$this->client_manager = new waWebasystIDClientManager();
$this->url_provider = new waWebasystIDUrlsProvider();
}

public function execute()
Expand Down Expand Up @@ -140,7 +142,7 @@ protected function corsWorkaround()

protected function getAccessToken($code, $apps)
{
$url = $this->client_manager->getWebasystIDConfig()->getAuthCenterUrl('auth/token');
$url = $this->url_provider->getAuthCenterUrl('auth/token');
$credentials = $this->client_manager->getCredentials();

if (empty($credentials)) {
Expand Down
4 changes: 2 additions & 2 deletions wa-system/webasyst/lib/config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
return array(
'name' => 'Webasyst',
'prefix' => 'webasyst',
'version' => '2.3.0',
'critical' => '2.3.0',
'version' => '2.3.1',
'critical' => '2.3.1',
'vendor' => 'webasyst',
'csrf' => true,
'header_items' => array(
Expand Down
Binary file modified wa-system/webasyst/locale/ru_RU/LC_MESSAGES/webasyst.mo
Binary file not shown.
5 changes: 4 additions & 1 deletion wa-system/webasyst/locale/ru_RU/LC_MESSAGES/webasyst.po
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WebAsyst\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2021-09-15 12:13+0300\n"
"PO-Revision-Date: 2021-09-17 18:46+0300\n"
"Last-Translator: Webasyst\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -6522,3 +6522,6 @@ msgstr "Перетащите сюда файл или загрузите его

msgid "Choose file"
msgstr "Выберите файл"

msgid "Unable to delete certain files."
msgstr "Не удалось удалить некоторые файлы."

0 comments on commit 4015115

Please sign in to comment.