From 15a049c37c4615c864dfc69ea95d881b3ddfe552 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 10 Jan 2013 03:41:30 -0500
Subject: [PATCH] Mark mime_magic option with old default value as obsolete

---
 installer/rcube_install.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index 6ef105b..e6fbc62 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -261,6 +261,11 @@
       }
     }
 
+    // the old default mime_magic reference is obsolete
+    if ($this->config['mime_magic'] == '/usr/share/misc/magic') {
+        $out['obsolete'][] = array('prop' => 'mime_magic', 'explain' => "Set value to null in order to use system default");
+    }
+
     // iterate over default config
     foreach ($defaults as $prop => $value) {
       if (!isset($seen[$prop]) && isset($required[$prop]) && !(is_bool($this->config[$prop]) || strlen($this->config[$prop])))

--
Gitblit v1.9.1