Alex Trofimov 13 лет назад
Родитель
Сommit
4574042fac
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      inc/classes/BxDolImageTranscoder.php
  2. 2 2
      inc/classes/BxDolTemplate.php

+ 2 - 2
inc/classes/BxDolImageTranscoder.php

@@ -479,7 +479,7 @@ class BxDolImageTranscoder extends BxDol {
 
     protected function applyFilter_Grayscale ($sFile, $aParams) { 
         bx_import ('BxDolImageResize');
-        $o =& BxDolImageResize::getInstance();
+        $o = BxDolImageResize::getInstance();
         $o->removeCropOptions ();
 
         $this->_checkForceType ($o, $aParams);
@@ -492,7 +492,7 @@ class BxDolImageTranscoder extends BxDol {
 
     protected function applyFilter_Resize ($sFile, $aParams) { 
         bx_import ('BxDolImageResize');
-        $o =& BxDolImageResize::getInstance();
+        $o = BxDolImageResize::getInstance();
         $o->removeCropOptions ();
 
         if (isset($aParams['w']) && isset($aParams['h']))

+ 2 - 2
inc/classes/BxDolTemplate.php

@@ -525,7 +525,7 @@ class BxDolTemplate extends BxDol {
      * @return location key. Is needed to remove the location.
      */
     function addDynamicLocation($sLocationPath, $sLocationUrl) {
-        $sLocationKey = mktime();
+        $sLocationKey = time();
         $this->addLocation($sLocationKey, $sLocationPath, $sLocationUrl);
 
         return $sLocationKey;
@@ -562,7 +562,7 @@ class BxDolTemplate extends BxDol {
      * @return location key. Is needed to remove the location.
      */
     function addDynamicLocationJs($sLocationPath, $sLocationUrl) {
-        $sLocationKey = mktime();
+        $sLocationKey = time();
         $this->addLocationJs($sLocationKey, $sLocationPath, $sLocationUrl);
 
         return $sLocationKey;