Fix $db not defined

This commit is contained in:
Laurent Destailleur 2019-12-07 13:19:12 +01:00
parent 7be8b14368
commit a2da98c08a

View File

@ -88,7 +88,7 @@ function dolSavePageAlias($filealias, $object, $objectpage)
*/
function dolSavePageContent($filetpl, Website $object, WebsitePage $objectpage)
{
global $conf;
global $conf, $db;
// Now create the .tpl file (duplicate code with actions updatesource or updatecontent but we need this to save new header)
dol_syslog("We regenerate the tpl page filetpl=".$filetpl);