diff options
-rw-r--r-- | pear/PEAR/Common.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index a50ece6969..9d846ceb1f 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -910,12 +910,24 @@ class PEAR_Common extends PEAR } elseif ($fa['role'] == 'extsrc' && empty($fa['sources'])) { $errors[] = "$file: no source files"; } - // Any checks we can do for baseinstalldir? + // (ssb) Any checks we can do for baseinstalldir? + // (cox) Perhaps checks that either the target dir and baseInstall + // doesn't cointain "../../" } } return true; } // }}} + /** + * Get the valid roles for a PEAR package maintainer + * + * @static + */ + function getUserRoles() + { + $common = &new PEAR_Common; + return $common->maintainer_roles; + } } ?>
\ No newline at end of file |