show api version instead of phpgwapi

This commit is contained in:
Ralf Becker 2016-04-02 20:25:01 +00:00
parent 2baf654e14
commit 978f8e282d
2 changed files with 10 additions and 16 deletions

View File

@ -156,7 +156,15 @@ class setup_html
}
$GLOBALS['setup_tpl']->set_var('lang_version',lang('version'));
$GLOBALS['setup_tpl']->set_var('pgw_ver',@$GLOBALS['egw_info']['server']['versions']['phpgwapi']);
if (!isset($GLOBALS['setup_info']) || !isset($GLOBALS['setup_info']['api']))
{
include(EGW_SERVER_ROOT.'/api/setup/setup.inc.php');
}
else
{
$setup_info = $GLOBALS['setup_info'];
}
$GLOBALS['setup_tpl']->set_var('pgw_ver', $setup_info['api']['version']);
$GLOBALS['setup_tpl']->set_var(array(
'logoutbutton' => $btn_logout,
'indexbutton' => $index_btn,

View File

@ -7,21 +7,7 @@
</div>
</div>
<div id="divPoweredBy"><br /><span>&nbsp;<a class="copyright" href="http://www.egroupware.org/">eGroupWare</a> {lang_version} {pgw_ver} </span></div>
<div id="divPoweredBy"><br /><span>&nbsp;<a class="copyright" href="http://www.egroupware.org/">EGroupware</a> {lang_version} {pgw_ver} </span></div>
</body>
</html>
<!-- END footer.tpl -->
<!--<br /><br />
</td>
</tr>
</tbody></table>
<br /></td>
<td width="15"></td>
</tr>
</tbody></table>
</td></tr>
</tbody></table></td></tr>
</tbody></table>
<p align="center" class="copyright">&nbsp;<a class="copyright" href="http://www.egroupware.org/">eGroupWare</a> {lang_version} {pgw_ver} </p>
</body></html>-->