diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php
index 404dbbbb2..691b175db 100644
--- a/html/includes/functions.inc.php
+++ b/html/includes/functions.inc.php
@@ -1,5 +1,19 @@
".$device['hostname']." - ".$text_descr;
$proc_popup .= "
";
diff --git a/html/pages/device/overview/processors.inc.php b/html/pages/device/overview/processors.inc.php
index 9fab6c5ff..149ecec77 100644
--- a/html/pages/device/overview/processors.inc.php
+++ b/html/pages/device/overview/processors.inc.php
@@ -20,11 +20,7 @@ if(mysql_result(mysql_query("SELECT count(*) from processors WHERE device_id = '
## REPLACE THIS SHITTY CODE. IT IS ALSO ELSEWHERE.
- $text_descr = $proc['processor_descr'];
- $text_descr = str_replace("Routing Processor", "RP", $text_descr);
- $text_descr = str_replace("Switching Processor", "SP", $text_descr);
- $text_descr = str_replace("Sub-Module", "Module ", $text_descr);
- $text_descr = str_replace("DFC Card", "DFC", $text_descr);
+ $text_descr = rewrite_processor_descr($proc['processor_descr']);
# disable short hrDeviceDescr. need to make this prettier.
#$text_descr = short_hrDeviceDescr($proc['processor_descr']);