diff --git a/module/doc/model.php b/module/doc/model.php
index 53c1e1a355..70935fdc6e 100644
--- a/module/doc/model.php
+++ b/module/doc/model.php
@@ -1713,7 +1713,7 @@ class docModel extends model
$class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : '';
$icon = zget($this->lang->doc->iconList, $typeKey);
$html .= "
";
- $html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " '" . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
+ $html .= html::a(helper::createLink('doc', 'create', "objectType=$objectType&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
$html .= "";
if($typeKey == 'url') $html .= '';
}
@@ -1721,13 +1721,13 @@ class docModel extends model
if(common::hasPriv('doc', 'createLib'))
{
$html .= '';
- $html .= '' . html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), $this->lang->doc->createLib, '', "class='iframe' data-width='70%'") . '';
+ $html .= '' . html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), " " . $this->lang->doc->createLib, '', "class='iframe' data-width='70%'") . '';
}
$html .= "";
}
else
{
- $html = html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), '' . $this->lang->doc->createLib, '', 'class="btn btn-secondary iframe"');
+ $html = html::a(helper::createLink('doc', 'createLib', "type=$objectType&objectID=$objectID"), ' ' . $this->lang->doc->createLib, '', 'class="btn btn-secondary iframe"');
}
return $html;
diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php
index 70066efe67..851814980e 100644
--- a/module/doc/view/tablecontents.html.php
+++ b/module/doc/view/tablecontents.html.php
@@ -90,7 +90,7 @@ if(empty($type)) $type = 'product';
$icon = zget($this->lang->doc->iconList, $typeKey);
$class = strpos($this->config->doc->officeTypes, $typeKey) !== false ? 'iframe' : '';
$html .= "";
- $html .= html::a(helper::createLink('doc', 'create', "objectType=$type&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " '" . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
+ $html .= html::a(helper::createLink('doc', 'create', "objectType=$type&objectID=$objectID&libID=$libID&moduleID=0&type=$typeKey", '', $class ? true : false), " " . $typeName, '', "class='$class' data-app='{$this->app->openApp}'");
$html .= "";
if($typeKey == 'url') $html .= '';
}