On Wed, Mar 30, 2011 at 9:31 AM, <sa...@lyx.org> wrote:

> Author: sanda
> Date: Wed Mar 30 15:31:55 2011
> New Revision: 38154
> URL: http://www.lyx.org/trac/changeset/38154
>
> Log:
> PHP attempt no.1
>
> Modified:
>   www-user/trunk/farm/cookbook/LyX/credits.inc
>
> Modified: www-user/trunk/farm/cookbook/LyX/credits.inc
>
> ==============================================================================
> --- www-user/trunk/farm/cookbook/LyX/credits.inc        Wed Mar 30 14:22:52
> 2011        (r38153)
> +++ www-user/trunk/farm/cookbook/LyX/credits.inc        Wed Mar 30 15:31:55
> 2011        (r38154)
> @@ -9,9 +9,12 @@
>  $email = str_replace(' () ', '@', $email);
>  $email = str_replace(' ! ', '.', $email);
>
> -if (isset($email) && $email != "")
> -        $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
> -else
> +if (isset($email) && $email != "") {
> +        if (strncasecmp($email,"http",4) == 0)
> +            $output = "<a href=\"${email}\">${name}</a>"
>

semicolon missing

> +       else
> +            $output=$output. "<dt><b>[[mailto:${email} | ${name}]]</b>";
> +} else
>         $output=$output. "<dt><b>${name}</b>";
>
>  $msg = ereg_replace("\n *", "\n  ", ltrim($msg));
>

Reply via email to