Update myobject.class.php
This commit is contained in:
parent
2ca5532a21
commit
86f0d6db41
@ -549,7 +549,10 @@ class MyObject extends CommonObject
|
|||||||
|
|
||||||
$result .= $linkstart;
|
$result .= $linkstart;
|
||||||
|
|
||||||
if ($this->showphoto_on_popup) {
|
if (empty($this->showphoto_on_popup)) {
|
||||||
|
if ($withpicto) $result.=img_object(($notooltip?'':$label), ($this->picto?$this->picto:'generic'), ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1);
|
||||||
|
} else {
|
||||||
|
if ($withpicto) {
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/lib/files.lib.php';
|
||||||
|
|
||||||
list($class, $module) = explode('@', $this->picto);
|
list($class, $module) = explode('@', $this->picto);
|
||||||
@ -567,7 +570,10 @@ class MyObject extends CommonObject
|
|||||||
|
|
||||||
$result .= '</div>';
|
$result .= '</div>';
|
||||||
}
|
}
|
||||||
elseif ($withpicto) $result.=img_object(($notooltip?'':$label), ($this->picto?$this->picto:'generic'), ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1);
|
else {
|
||||||
|
$result.=img_object(($notooltip?'':$label), ($this->picto?$this->picto:'generic'), ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($withpicto != 2) $result.= $this->ref;
|
if ($withpicto != 2) $result.= $this->ref;
|
||||||
$result .= $linkend;
|
$result .= $linkend;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user