From de3dd4ae9ac0af57767c3809dcee96b82f12b219 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 16 Aug 2010 01:08:14 -0600 Subject: [PATCH] More MIME types for C source files --- framework/Mime_Viewer/lib/Horde/Mime/Viewer/Srchighlite.php | 2 ++ horde/config/mime_drivers.php.dist | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/framework/Mime_Viewer/lib/Horde/Mime/Viewer/Srchighlite.php b/framework/Mime_Viewer/lib/Horde/Mime/Viewer/Srchighlite.php index dfbb61415..1b7f8c1a0 100644 --- a/framework/Mime_Viewer/lib/Horde/Mime/Viewer/Srchighlite.php +++ b/framework/Mime_Viewer/lib/Horde/Mime/Viewer/Srchighlite.php @@ -138,6 +138,7 @@ class Horde_Mime_Viewer_Srchighlite extends Horde_Mime_Viewer_Base return 'xml'; case 'text/cpp': + case 'text/x-c++': case 'text/x-c++src': case 'text/x-c++hdr': return 'cpp'; @@ -151,6 +152,7 @@ class Horde_Mime_Viewer_Srchighlite extends Horde_Mime_Viewer_Base case 'text/x-patch': return 'diff'; + case 'text/x-c': case 'text/x-chdr': case 'text/x-csrc': return 'c'; diff --git a/horde/config/mime_drivers.php.dist b/horde/config/mime_drivers.php.dist index 1f8bca25d..474d37aff 100644 --- a/horde/config/mime_drivers.php.dist +++ b/horde/config/mime_drivers.php.dist @@ -166,6 +166,8 @@ $mime_drivers = array( 'text/cpp', 'text/css', 'text/diff', + 'text/x-c', + 'text/x-c++', 'text/x-c++hdr', 'text/x-c++src', 'text/x-chdr', @@ -206,6 +208,8 @@ $mime_drivers = array( 'application/xml' => 'xml.png', 'text/cpp' => 'source-c.png', 'text/css' => 'html.png', + 'text/x-c' => 'source-c.png', + 'text/x-c++' => 'source-c.png', 'text/x-c++hdr' => 'source-c.png', 'text/x-c++src' => 'source-c.png', 'text/x-chdr' => 'source-h.png', -- 2.11.0