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

[email protected] ("Helgi ?ormar ?orbj?rnsson") Mon, 05 May 2008 01:14:20 -0000
Newsgroups php.pear.cvs,php.pear.core
Message-ID <cvsdufuz1209950060@cvsserver>
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