Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-15882

Embed size when not set in ezxml hardcoded to medium, should use DefaultEmbedAlias

    XMLWordPrintable

Details

    Description

      Patch for 5.0.4:

      Index: ezoe/ezxmltext/handlers/input/ezoexmlinput.php
      ===================================================================
      --- ezoe/ezxmltext/handlers/input/ezoexmlinput.php	(revision 158)
      +++ ezoe/ezxmltext/handlers/input/ezoexmlinput.php	(working copy)
      @@ -1070,8 +1070,16 @@
                       $idString  = '';
                       $tplSuffix = '';
       
      -                if ( !$size ) $size = 'medium';
      -                if ( !$view ) $view = $tagName;
      +                if ( !$size )
      +                {
      +                    $contentIni = eZINI::instance( 'content.ini' );
      +                    $size       = $contentIni->variable( 'ImageSettings', 'DefaultEmbedAlias' );
      +                }
      +
      +                if ( !$view )
      +                {
      +                    $view = $tagName;
      +                }
       
                       $objectAttr = '';                
                       $objectAttr .= ' alt="' . $size . '"';
      

      Attachments

        Activity

          People

            andre1 andre1
            andre1 andre1
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: