Skip to content

Commit eb24eb1

Browse files
author
Leonix
committed
Webasyst Framework v.2.9.7
* Improved apps’ API. * Fixed a few found bugs.
1 parent 0360582 commit eb24eb1

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

wa-apps/installer/lib/config/app.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
'description' => 'Install new apps from the Webasyst Store',
55
'icon' => 'img/installer.svg',
66
'mobile' => false,
7-
'version' => '2.9.6',
8-
'critical' => '2.9.6',
7+
'version' => '2.9.7',
8+
'critical' => '2.9.7',
99
'system' => true,
1010
'vendor' => 'webasyst',
1111
'csrf' => true,

wa-content/css/wa/wa-2.0.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,3 +2898,4 @@ progress.color-dark-gray::-moz-progress-bar { background-color: var(--dark-gray)
28982898
}
28992899

29002900
.hidden { display: none !important; }
2901+
table.xdebug-error th { color: black; }

wa-system/currency/waCurrency.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ protected static function extract($n, $currency, $locale, $precision, $format, $
228228
$n = round($n, $precision + 2);
229229
$n = floor($n * pow(10, $precision)) / ((float) pow(10, $precision));
230230
} else {
231-
$n = round($n, $precision);
231+
$n = round((float) $n, $precision);
232232

233233
// required to show '%.1' correctly for 0.99
234234
if ($trim_to_width !== false && strlen($n) > $trim_to_width) {

wa-system/mail/waMail.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
3333
if (!$message->getHeaders()->get('DKIM-Signature')) {
3434
$mail_config = $this->readConfigFile();
3535
$sender_email = key($message->getFrom());
36-
$e = explode('@', ifset($sender_email));
36+
$e = explode('@', (string) ifset($sender_email));
3737
$domain_name = end($e);
3838
$mail_data = false;
3939

@@ -106,7 +106,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
106106
*/
107107
public static function getTransportByEmail($email)
108108
{
109-
$email = waIdna::dec(mb_strtolower($email));
109+
$email = waIdna::dec(mb_strtolower((string) $email));
110110
if (!isset(self::$wa_config['transport'])) {
111111
self::$wa_config['transport'] = wa()->getConfig()->getConfigFile('mail');
112112
}

wa-system/request/waRequest.class.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@ public static function server($name = null, $default = null, $type = null)
306306
{
307307
if ($name && !isset($_SERVER[$name])) {
308308
$name = strtoupper($name);
309+
if (!isset($_SERVER[$name])) {
310+
$name = 'REDIRECT_'.$name;
311+
}
309312
}
310313
return self::getData($_SERVER, $name, $default, $type);
311314
}

wa-system/vendors/swift/classes/Swift/Attachment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Swift_Attachment extends Swift_Mime_Attachment
2929
public function __construct($data = null, $filename = null, $contentType = null)
3030
{
3131
call_user_func_array(
32-
array($this, 'Swift_Mime_Attachment::__construct'),
32+
array('Swift_Mime_Attachment', '__construct'),
3333
Swift_DependencyContainer::getInstance()
3434
->createDependenciesFor('mime.attachment')
3535
);

wa-system/vendors/swift/classes/Swift/SmtpTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Swift_SmtpTransport extends Swift_Transport_EsmtpTransport
3333
public function __construct($host = 'localhost', $port = 25, $security = null)
3434
{
3535
call_user_func_array(
36-
array($this, 'Swift_Transport_EsmtpTransport::__construct'),
36+
array('Swift_Transport_EsmtpTransport', '__construct'),
3737
Swift_DependencyContainer::getInstance()
3838
->createDependenciesFor('transport.smtp')
3939
);

wa-system/webasyst/lib/config/app.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
return array(
44
'name' => 'Webasyst',
55
'prefix' => 'webasyst',
6-
'version' => '2.9.6',
7-
'critical' => '2.9.6',
6+
'version' => '2.9.7',
7+
'critical' => '2.9.7',
88
'vendor' => 'webasyst',
99
'csrf' => true,
1010
'header_items' => array(

0 commit comments

Comments
 (0)