From: Jan Schneider Date: Thu, 4 Feb 2010 22:34:28 +0000 (+0100) Subject: Revert "Remove old CVS-related code" X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=81f950e84187f819f45b2e380ae91ca68b5ac1bf;p=horde.git Revert "Remove old CVS-related code" This reverts commit 36b4c8a71fd29949f80d7c1ff6c676d4eb5376ce. We still are going to need the old parsing, because people are going to update from release versions from CVS. --- diff --git a/framework/Core/lib/Horde/Config.php b/framework/Core/lib/Horde/Config.php index 77365dfea..7071cfbc5 100644 --- a/framework/Core/lib/Horde/Config.php +++ b/framework/Core/lib/Horde/Config.php @@ -158,9 +158,14 @@ class Horde_Config */ static public function getVersion($text) { - return preg_match('/\$Id:\s*[0-9a-f]+\s*\$/', $text, $match) - ? $match[0] - : false; + // @TODO: Old CVS tag + if (preg_match('/\$.*?conf\.xml,v .*? .*\$/', $text, $match) || + // New Git tag + preg_match('/\$Id:\s*[0-9a-f]+\s*\$/', $text, $match)) { + return $match[0]; + } + + return false; } /**