From a10f11649312dbe4fda81ffd98beb3847c6ad9db Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Wed, 30 Mar 2011 13:49:43 +0000 Subject: [PATCH] Backport to generate_contributions.py git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38159 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/generate_contributions.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index ff96f0d154..4f000d5537 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -152,9 +152,12 @@ function credits_contrib($name, $email, $msg) { $email = str_replace(' () ', '@', $email); $email = str_replace(' ! ', '.', $email); -if (isset($email) && $email != "") - $output=$output. "
[[mailto:${email} | ${name}]]"; -else +if (isset($email) && $email != "") { + if (strncasecmp($email,"http",4) == 0) + $output =$output. "
[[${email} | ${name}]]"; + else + $output=$output. "
[[mailto:${email} | ${name}]]"; +} else $output=$output. "
${name}"; $msg = ereg_replace("\\n *", "\\n ", ltrim($msg));