Kaynağa Gözat

PHP 8.5 compatibility.

AntonLV 5 ay önce
ebeveyn
işleme
3827802f99

+ 1 - 1
inc/classes/BxDolAIAssistant.php

@@ -299,7 +299,7 @@ class BxDolAIAssistant extends BxDol
         ];
 
         switch($sAction) {
-            case 'add_knowledge';
+            case 'add_knowledge':
                 $aForm['inputs'] = [
                     'id' => [
                         'type' => 'hidden',

+ 2 - 2
inc/classes/BxDolTranscoderVideo.php

@@ -90,7 +90,7 @@ class BxDolTranscoderVideo extends BxDolTranscoder implements iBxDolFactoryObjec
     public static function getDuration($sFile)
     {
         $sCommand = escapeshellcmd(BX_SYSTEM_FFMPEG) . " -i " . escapeshellarg($sFile) . " 2>&1";
-        $sResult = `$sCommand`;
+        $sResult = shell_exec($sCommand);
 
         $aMatch = array();
         if(!preg_match("/[Dd]uration:\s([0-9]{2}):([0-9]{2}):([0-9]{2})\.([0-9]{2})/i", $sResult, $aMatch))
@@ -222,7 +222,7 @@ class BxDolTranscoderVideo extends BxDolTranscoder implements iBxDolFactoryObjec
         }
 
         $sCommand = escapeshellcmd(BX_SYSTEM_FFMPEG) . ' -y ' . $this->_getFfmpegThreadsParams() . ' -i ' . escapeshellarg($sFile) . ' ' . $this->_getFfmpegThreadsParams() . ' ' . $sOptions . ' ' . escapeshellarg($sFileOut) . ' 2>&1';
-        $sOutput = `$sCommand`;
+        $sOutput = shell_exec($sCommand);
         $this->addToLog("\n---\n{$sCommand}\n{$sOutput}\n");
 
         if (!file_exists($sFileOut) || 0 == filesize($sFileOut)) {

+ 4 - 4
modules/base/template/classes/BxBaseModTemplateConfig.php

@@ -153,13 +153,13 @@ class BxBaseModTemplateConfig extends BxBaseModGeneralConfig
             return $iHeaderHeight;
 
         switch(count($aHeaderPaddings)) {
-            case 1;
-            case 2;
+            case 1:
+            case 2:
                 $iPTop = $iPBottom = $this->_str2px($aHeaderPaddings[0]);
                 break;
 
-            case 3;
-            case 4;
+            case 3:
+            case 4:
                 $iPTop = $this->_str2px($aHeaderPaddings[0]);
                 $iPBottom = $this->_str2px($aHeaderPaddings[2]);
                 break;

+ 1 - 1
modules/boonex/antispam/classes/BxAntispamAlertsResponse.php

@@ -22,7 +22,7 @@ class BxAntispamAlertsResponse extends BxDolAlertsResponse
                 case 'check_login':
                     $oAlert->aExtras['error_msg'] = BxDolService::call('bx_antispam', 'check_login');
                     break;
-                case 'check_join';
+                case 'check_join':
                     $oAlert->aExtras['error_msg'] = BxDolService::call('bx_antispam', 'check_join', array($oAlert->aExtras['email'], &$oAlert->aExtras['approve']));
                     break;
             }