Fix scrutinizer

This commit is contained in:
Laurent Destailleur
2017-10-13 13:22:24 +02:00
parent d12019d1b5
commit 9aa1f4725e
3 changed files with 17 additions and 94 deletions

View File

@@ -985,9 +985,10 @@ if (! function_exists("llxHeader"))
* @param array $arrayofcss Array of complementary css files
* @param string $morequerystring Query string to add to the link "print" to get same parameters (use only if autodetect fails)
* @param string $morecssonbody More CSS on body tag.
* @param string $replacemainareaby Replace call to main_area() by a print of this string
* @return void
*/
function llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='')
function llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='')
{
global $conf;
@@ -1008,6 +1009,11 @@ if (! function_exists("llxHeader"))
}
// main area
if ($replacemainareaby)
{
print $replacemainareaby;
return;
}
main_area($title);
}
}