Skip to content

Commit

Permalink
Webasyst Framework v.2.9.7
Browse files Browse the repository at this point in the history
  * Improved apps’ API.
  * Fixed a few found bugs.
  • Loading branch information
Leonix committed Nov 21, 2023
1 parent 0360582 commit eb24eb1
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 9 deletions.
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.9.6',
'critical' => '2.9.6',
'version' => '2.9.7',
'critical' => '2.9.7',
'system' => true,
'vendor' => 'webasyst',
'csrf' => true,
Expand Down
1 change: 1 addition & 0 deletions wa-content/css/wa/wa-2.0.css
Original file line number Diff line number Diff line change
Expand Up @@ -2898,3 +2898,4 @@ progress.color-dark-gray::-moz-progress-bar { background-color: var(--dark-gray)
}

.hidden { display: none !important; }
table.xdebug-error th { color: black; }
2 changes: 1 addition & 1 deletion wa-system/currency/waCurrency.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ protected static function extract($n, $currency, $locale, $precision, $format, $
$n = round($n, $precision + 2);
$n = floor($n * pow(10, $precision)) / ((float) pow(10, $precision));
} else {
$n = round($n, $precision);
$n = round((float) $n, $precision);

// required to show '%.1' correctly for 0.99
if ($trim_to_width !== false && strlen($n) > $trim_to_width) {
Expand Down
4 changes: 2 additions & 2 deletions wa-system/mail/waMail.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
if (!$message->getHeaders()->get('DKIM-Signature')) {
$mail_config = $this->readConfigFile();
$sender_email = key($message->getFrom());
$e = explode('@', ifset($sender_email));
$e = explode('@', (string) ifset($sender_email));
$domain_name = end($e);
$mail_data = false;

Expand Down Expand Up @@ -106,7 +106,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
*/
public static function getTransportByEmail($email)
{
$email = waIdna::dec(mb_strtolower($email));
$email = waIdna::dec(mb_strtolower((string) $email));
if (!isset(self::$wa_config['transport'])) {
self::$wa_config['transport'] = wa()->getConfig()->getConfigFile('mail');
}
Expand Down
3 changes: 3 additions & 0 deletions wa-system/request/waRequest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ public static function server($name = null, $default = null, $type = null)
{
if ($name && !isset($_SERVER[$name])) {
$name = strtoupper($name);
if (!isset($_SERVER[$name])) {
$name = 'REDIRECT_'.$name;
}
}
return self::getData($_SERVER, $name, $default, $type);
}
Expand Down
2 changes: 1 addition & 1 deletion wa-system/vendors/swift/classes/Swift/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Swift_Attachment extends Swift_Mime_Attachment
public function __construct($data = null, $filename = null, $contentType = null)
{
call_user_func_array(
array($this, 'Swift_Mime_Attachment::__construct'),
array('Swift_Mime_Attachment', '__construct'),
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.attachment')
);
Expand Down
2 changes: 1 addition & 1 deletion wa-system/vendors/swift/classes/Swift/SmtpTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Swift_SmtpTransport extends Swift_Transport_EsmtpTransport
public function __construct($host = 'localhost', $port = 25, $security = null)
{
call_user_func_array(
array($this, 'Swift_Transport_EsmtpTransport::__construct'),
array('Swift_Transport_EsmtpTransport', '__construct'),
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.smtp')
);
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.9.6',
'critical' => '2.9.6',
'version' => '2.9.7',
'critical' => '2.9.7',
'vendor' => 'webasyst',
'csrf' => true,
'header_items' => array(
Expand Down

0 comments on commit eb24eb1

Please sign in to comment.