Răsfoiți Sursa

#2 - compatibility with 5.4

Alex Trofimov 13 ani în urmă
părinte
comite
4574042fac
2 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  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) { 
     protected function applyFilter_Grayscale ($sFile, $aParams) { 
         bx_import ('BxDolImageResize');
         bx_import ('BxDolImageResize');
-        $o =& BxDolImageResize::getInstance();
+        $o = BxDolImageResize::getInstance();
         $o->removeCropOptions ();
         $o->removeCropOptions ();
 
 
         $this->_checkForceType ($o, $aParams);
         $this->_checkForceType ($o, $aParams);
@@ -492,7 +492,7 @@ class BxDolImageTranscoder extends BxDol {
 
 
     protected function applyFilter_Resize ($sFile, $aParams) { 
     protected function applyFilter_Resize ($sFile, $aParams) { 
         bx_import ('BxDolImageResize');
         bx_import ('BxDolImageResize');
-        $o =& BxDolImageResize::getInstance();
+        $o = BxDolImageResize::getInstance();
         $o->removeCropOptions ();
         $o->removeCropOptions ();
 
 
         if (isset($aParams['w']) && isset($aParams['h']))
         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.
      * @return location key. Is needed to remove the location.
      */
      */
     function addDynamicLocation($sLocationPath, $sLocationUrl) {
     function addDynamicLocation($sLocationPath, $sLocationUrl) {
-        $sLocationKey = mktime();
+        $sLocationKey = time();
         $this->addLocation($sLocationKey, $sLocationPath, $sLocationUrl);
         $this->addLocation($sLocationKey, $sLocationPath, $sLocationUrl);
 
 
         return $sLocationKey;
         return $sLocationKey;
@@ -562,7 +562,7 @@ class BxDolTemplate extends BxDol {
      * @return location key. Is needed to remove the location.
      * @return location key. Is needed to remove the location.
      */
      */
     function addDynamicLocationJs($sLocationPath, $sLocationUrl) {
     function addDynamicLocationJs($sLocationPath, $sLocationUrl) {
-        $sLocationKey = mktime();
+        $sLocationKey = time();
         $this->addLocationJs($sLocationKey, $sLocationPath, $sLocationUrl);
         $this->addLocationJs($sLocationKey, $sLocationPath, $sLocationUrl);
 
 
         return $sLocationKey;
         return $sLocationKey;