com web/wiki: Fix bug in phplinks plugin, where the bugid didn't get properly assigned: dokuwiki/lib/plugins/phplinks/syntax.php

From: Date: Fri, 30 Sep 2016 10:59:58 +0000
Subject: com web/wiki: Fix bug in phplinks plugin, where the bugid didn't get properly assigned: dokuwiki/lib/plugins/phplinks/syntax.php
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-25213@lists.php.net to get a copy of this message
Commit: 1a205c9fd8dc31688dbce750e21ac93564a5961d Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 30 Sep 2016 12:59:58 +0200 Parents: ad7021a59ee6e30e3e9408f441a0fe2d9ef4018b Branches: master Link: http://git.php.net/?p=web/wiki.git;a=commitdiff;h=1a205c9fd8dc31688dbce750e21ac93564a5961d Log: Fix bug in phplinks plugin, where the bugid didn't get properly assigned Changed paths: M dokuwiki/lib/plugins/phplinks/syntax.php Diff: diff --git a/dokuwiki/lib/plugins/phplinks/syntax.php b/dokuwiki/lib/plugins/phplinks/syntax.php index 7e9009f..04411db 100644 --- a/dokuwiki/lib/plugins/phplinks/syntax.php +++ b/dokuwiki/lib/plugins/phplinks/syntax.php @@ -68,7 +68,7 @@ class syntax_plugin_phplinks extends DokuWiki_Syntax_Plugin preg_match('/\[\[([-a-z]+)\@(\d+)\|?([^\]]*)\]\]/', $match, $matches); if ($matches[1] == 'bugid') { $name = $matches[3] ? $matches[3] : 'bug #' . $matches[2]; - $url = 'http://bugs..php.net/bug.php?id=' . $matches[1]; + $url = 'http://bugs..php.net/bug.php?id=' . $matches[2]; } else { $name = $matches[3] ? $matches[3] : 'ml#' . $matches[2]; $url = 'http://marc.info/?l=' . $matches[1] . '&m=' . $matches[2];

« previous php.webmaster (#25213) next »