From 70497688eb07bf787c0ebe7cb8bb7df6e5b1235d Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 31 Jul 2015 15:04:42 -0300 Subject: Do not try to use a variable that is not set yet --- etc/inc/globals.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index b40a862..f7fe0fc 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -58,7 +58,7 @@ $g = array( "xml_rootobj" => "pfsense", "admin_group" => "admins", "product_name" => "pfSense", - "product_version" => trim(file_get_contents("{$g['etc_path']}/version"), " \n"), + "product_version" => trim(file_get_contents("/etc/version"), " \n"), "product_copyright" => "Electric Sheep Fencing LLC", "product_copyright_url" => "http://www.electricsheepfencing.com", "product_copyright_years" => "2004 - ".date("Y"), -- cgit v1.1