mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 09:38:48 +02:00
🚸 Change AttributeImage methods visibility to allow overrides
This commit is contained in:
@@ -7334,7 +7334,7 @@ class AttributeImage extends AttributeBlob
|
||||
return '<div class="'.$sCssClasses.'" style="width: '.$iMaxWidthPx.'; height: '.$iMaxHeightPx.';"><span class="helper-middle"></span>'.$sRet.'</div>';
|
||||
}
|
||||
|
||||
private function GetHtmlForImageUrl($sUrl, $iMaxWidthPx, $iMaxHeightPx) {
|
||||
protected function GetHtmlForImageUrl($sUrl, $iMaxWidthPx, $iMaxHeightPx) {
|
||||
return '<img src="'.$sUrl.'" style="max-width: '.$iMaxWidthPx.'; max-height: '.$iMaxHeightPx.'">';
|
||||
}
|
||||
|
||||
@@ -7344,7 +7344,7 @@ class AttributeImage extends AttributeBlob
|
||||
*
|
||||
* @return null|string
|
||||
*/
|
||||
private function GetAttributeImageFileUrl($value, $oHostObject) {
|
||||
protected function GetAttributeImageFileUrl($value, $oHostObject) {
|
||||
if (!is_object($value)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user