Alex Trofimov 2 лет назад
Родитель
Сommit
905324f601
2 измененных файлов с 18 добавлено и 0 удалено
  1. 10 0
      inc/classes/BxDolStorage.php
  2. 8 0
      inc/classes/BxDolTranscoder.php

+ 10 - 0
inc/classes/BxDolStorage.php

@@ -478,6 +478,16 @@ abstract class BxDolStorage extends BxDolFactory implements iBxDolFactoryObject
             }
         }
 
+        bx_alert('system', 'store_file', $iContentId, $iProfileId, array(
+            'storage_object' => $this->_aObject['object'],
+            'object' => $this,
+            'file_name' => $oHelper->getName(),
+            'mime_type' => $sMimeType,
+            'ext' => $sExt,
+            'size' => $oHelper->getSize(),
+            'file_path' => $sTmpFile,
+        ));
+
         // store file to storage engine
 
         $sLocalId = $this->genRandName();

+ 8 - 0
inc/classes/BxDolTranscoder.php

@@ -490,6 +490,14 @@ class BxDolTranscoder extends BxDolFactory implements iBxDolFactoryObject
                 }
             }
 
+            bx_alert('system', 'transcode', $mixedHandler, false, array(
+                'transcoder_object' => $this->_aObject['object'],
+                'object' => $this,
+                'db' => $this->_oDb,
+                'file_path' => $sTmpFile,
+                'ret' => &$bRet,
+            ));
+
             $mixedHandler = $this->processHandlerForRetinaDevice($mixedHandler);
                     
             if ($this->_sQueueStorage) {