From 70a0e17a2bc180e50b82779d720f633ce7a5e6a3 Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Mon, 22 Aug 2016 15:13:41 -0500 Subject: [PATCH] Re-fix realtime --- html/data.php | 4 ++-- html/graph-realtime.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html/data.php b/html/data.php index 6545c45b82..42f776ca59 100644 --- a/html/data.php +++ b/html/data.php @@ -19,8 +19,8 @@ require_once '../includes/definitions.inc.php'; // initialize the class loader and add custom mappings require_once $config['install_dir'] . '/LibreNMS/ClassLoader.php'; $classLoader = new LibreNMS\ClassLoader(); -$classLoader->mapClass('Console_Color2', $config['install_dir'] . '/includes/console_colour.php'); -$classLoader->mapClass('PasswordHash', $config['install_dir'] . '/html/lib/PasswordHash.php'); +$classLoader->registerClass('Console_Color2', $config['install_dir'] . '/includes/console_colour.php'); +$classLoader->registerClass('PasswordHash', $config['install_dir'] . '/html/lib/PasswordHash.php'); $classLoader->register(); require_once '../includes/common.php'; diff --git a/html/graph-realtime.php b/html/graph-realtime.php index 6834ab540b..311603fb0b 100644 --- a/html/graph-realtime.php +++ b/html/graph-realtime.php @@ -20,8 +20,8 @@ require_once '../includes/definitions.inc.php'; // initialize the class loader and add custom mappings require_once $config['install_dir'] . '/LibreNMS/ClassLoader.php'; $classLoader = new LibreNMS\ClassLoader(); -$classLoader->mapClass('Console_Color2', $config['install_dir'] . '/includes/console_colour.php'); -$classLoader->mapClass('PasswordHash', $config['install_dir'] . '/html/lib/PasswordHash.php'); +$classLoader->registerClass('Console_Color2', $config['install_dir'] . '/includes/console_colour.php'); +$classLoader->registerClass('PasswordHash', $config['install_dir'] . '/html/lib/PasswordHash.php'); $classLoader->register(); require_once '../includes/common.php';