mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Include rrd.inc if dump_rrd_to_xml() is not found to be included to avoid Fatal error: Call to undefined function dump_rrd_to_xml() in /etc/inc/upgrade_config.inc on line 1752
This commit is contained in:
parent
4a1ee8ac31
commit
901aa044a5
@ -34,11 +34,13 @@ OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
pfSense_MODULE: config
|
||||
*/
|
||||
|
||||
if(!function_exists("dump_rrd_to_xml"))
|
||||
require("rrd.inc");
|
||||
|
||||
/* Upgrade functions must be named:
|
||||
* upgrade_XXX_to_YYY
|
||||
* where XXX == previous version, zero padded, and YYY == next version, zero padded
|
||||
*/
|
||||
|
||||
function upgrade_010_to_011() {
|
||||
global $config;
|
||||
$opti = 1;
|
||||
@ -2062,4 +2064,4 @@ function upgrade_063_to_064() {
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Loading…
Reference in New Issue
Block a user