cvs: pearweb /include/bugs pear-bugs-utils.php

From: Date: Mon, 05 May 2008 01:14:20 +0000
Subject: cvs: pearweb /include/bugs pear-bugs-utils.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7510@lists.php.net to get a copy of this message
dufuz Mon May 5 01:14:20 2008 UTC Modified files: /pearweb/include/bugs pear-bugs-utils.php Log: Add a method that checks if the package has an external bug system set or not. http://cvs.php.net/viewvc.cgi/pearweb/include/bugs/pear-bugs-utils.php?r1=1.6&r2=1.7&diff_format=u Index: pearweb/include/bugs/pear-bugs-utils.php diff -u pearweb/include/bugs/pear-bugs-utils.php:1.6 pearweb/include/bugs/pear-bugs-utils.php:1.7 --- pearweb/include/bugs/pear-bugs-utils.php:1.6 Thu Apr 10 18:46:11 2008 +++ pearweb/include/bugs/pear-bugs-utils.php Mon May 5 01:14:20 2008 @@ -196,4 +196,16 @@ return $res; } // }}} + + /** + * Check if the given package uses an external bug system or not + * + */ + function getExternalSystem($package) + { + global $dbh; + $sql = 'SELECT bug_link FROM packages WHERE name = ?'; + $res = $dbh->getOne($sql, array($package)); + return $res; + } } \ No newline at end of file

« previous php.pear.core (#7510) next »