improved processor text description rewriting (now in function)

git-svn-id: http://www.observium.org/svn/observer/trunk@1315 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-08 23:21:30 +00:00
parent d8d42a55b5
commit 8da13537f1
3 changed files with 17 additions and 9 deletions

View File

@@ -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']);