Fix: Bad param 'zone' into printCommon

This commit is contained in:
Laurent Destailleur 2013-06-07 14:52:25 +02:00
parent 693f4f3b8b
commit c78d5aa4a7

View File

@ -1149,7 +1149,7 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
if (! empty($conf->global->MAIN_USE_JQUERY_JMOBILE) || defined('REQUIRE_JQUERY_JMOBILE') || (! empty($conf->dol_use_jmobile) && $conf->dol_use_jmobile > 0))
{
// We must force not using ajax because cache of jquery does not load js of other pages.
// This also increase seriously speed onto mobile device where complex js code is very slow and memory very low.
// This also increase seriously speed onto mobile device where complex js code is very slow and memory very low.
if (empty($conf->dol_use_jmobile) || $conf->dol_use_jmobile != 2)
{
print '<script type="text/javascript">
@ -1772,10 +1772,11 @@ if (! function_exists("llxFooter"))
* Show HTML footer
* Close div /DIV data-role=page + /DIV class=fiche + /DIV /DIV main layout + /BODY + /HTML.
*
* @param string $foot A text to add in HTML generated page
* @param string $comment A text to add as HTML comment into HTML generated page
* @param string $zone 'private' (for private pages) or 'public' (for public pages)
* @return void
*/
function llxFooter($foot='')
function llxFooter($comment='',$zone='pivate')
{
global $conf, $langs;
@ -1810,9 +1811,9 @@ if (! function_exists("llxFooter"))
if (empty($conf->dol_hide_leftmenu)) print '</div>'; // End div id-right
print "\n";
if ($foot) print '<!-- '.$foot.' -->'."\n";
if ($comment) print '<!-- '.$comment.' -->'."\n";
printCommonFooter($foot);
printCommonFooter($zone);
if (empty($conf->dol_hide_leftmenu)) print '</div>'; // End div container