Annotation of pkgsrc/databases/phpldapadmin/patches/patch-lib_PageRender.php, revision 1.2

1.2     ! khorben     1: $NetBSD: patch-lib_PageRender.php,v 1.1 2021/02/21 22:22:22 khorben Exp $
1.1       khorben     2: 
                      3: Fix for PHP >= 5.5
                      4: 
1.2     ! khorben     5: --- lib/PageRender.php.orig    2022-04-15 22:45:43.000000000 +0000
1.1       khorben     6: +++ lib/PageRender.php
1.2     ! khorben     7: @@ -827,7 +827,7 @@ class PageRender extends Visitor {
        !             8:                if (! $attribute->getOldValue($i))
        !             9:                        return;
        !            10:  
        !            11: -              draw_jpeg_photo($this->getServer(),$this->template->getDN(),$attribute->getName(),$i,false,false);
        !            12: +              draw_jpeg_photo($this->getServer(),$this->template->getDN(),$i,$attribute->getName(),false,false);
        !            13:        }
        !            14:  
        !            15:        /**
        !            16: @@ -844,16 +844,16 @@ class PageRender extends Visitor {
        !            17:                # If the attribute is modified, the new value needs to be stored in a session variable for the draw_jpeg_photo callback.
        !            18:                if ($attribute->hasBeenModified()) {
        !            19:                        $_SESSION['tmp'][$attribute->getName()][$i] = $attribute->getValue($i);
        !            20: -                      draw_jpeg_photo(null,$this->template->getDN(),$attribute->getName(),$i,false,false);
        !            21: +                      draw_jpeg_photo(null,$this->template->getDN(),$i,$attribute->getName(),false,false);
        !            22:                } else
        !            23: -                      draw_jpeg_photo($this->getServer(),$this->template->getDN(),$attribute->getName(),$i,false,false);
        !            24: +                      draw_jpeg_photo($this->getServer(),$this->template->getDN(),$i,$attribute->getName(),false,false);
        !            25:        }
        !            26:  
        !            27:        protected function drawFormReadOnlyValueJpegAttribute($attribute,$i) {
        !            28:                $this->draw('HiddenValue',$attribute,$i);
        !            29:                $_SESSION['tmp'][$attribute->getName()][$i] = $attribute->getValue($i);
        !            30:  
        !            31: -              draw_jpeg_photo(null,$this->template->getDN(),$attribute->getName(),$i,false,false);
        !            32: +              draw_jpeg_photo(null,$this->template->getDN(),$i,$attribute->getName(),false,false);
        !            33:        }
1.1       khorben    34:  
1.2     ! khorben    35:        protected function drawFormReadOnlyValueMultiLineAttribute($attribute,$i) {

CVSweb <webmaster@jp.NetBSD.org>