r1202 + all options have moved into the database
[racktables] / inc / functions.php
index 39da5ef8e9298c61709d38fea6367d5de4d94a71..101b98a5712a20f8aafce864890333828e7e96b5 100644 (file)
@@ -31,7 +31,7 @@ function displayedName ($objectData)
 {
        if ($objectData['name'] != '')
                return $objectData['name'];
-       elseif (in_array ($objectData['objtype_id'], explode (',', NAMEFUL_OBJTYPES)))
+       elseif (in_array ($objectData['objtype_id'], explode (',', getConfigVar ('NAMEFUL_OBJTYPES'))))
                return "ANONYMOUS " . $objectData['objtype_name'];
        else
                return "[${objectData['objtype_name']}]";