summaryrefslogtreecommitdiff
path: root/inc/confutils.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2012-07-28 11:06:10 +0200
committerMichael Hamann <michael@content-space.de>2012-07-28 11:34:47 +0200
commite3ab6fc5cbab1aaf365e73abaa3d91c03eebdd47 (patch)
treedb89e649bb19012ffaa6b01cb796606ee6c50d4d /inc/confutils.php
parent9a9b579a79463369319f9613a630625a99eeded0 (diff)
downloadrpg-e3ab6fc5cbab1aaf365e73abaa3d91c03eebdd47.tar.gz
rpg-e3ab6fc5cbab1aaf365e73abaa3d91c03eebdd47.tar.bz2
Fixed and extended PHPDoc comments and added additional @var comments
Diffstat (limited to 'inc/confutils.php')
-rw-r--r--inc/confutils.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/inc/confutils.php b/inc/confutils.php
index 29ead1e9f..edea80092 100644
--- a/inc/confutils.php
+++ b/inc/confutils.php
@@ -115,7 +115,11 @@ function getWordblocks() {
return $wordblocks;
}
-
+/**
+ * Gets the list of configured schemes
+ *
+ * @return array the schemes
+ */
function getSchemes() {
static $schemes = null;
if ( !$schemes ) {
@@ -182,7 +186,7 @@ function confToHash($file,$lower=false) {
*
* @param string $type the configuration settings to be read, must correspond to a key/array in $config_cascade
* @param callback $fn the function used to process the configuration file into an array
- * @param array $param optional additional params to pass to the callback
+ * @param array $params optional additional params to pass to the callback
* @return array configuration values
*/
function retrieveConfig($type,$fn,$params=null) {
@@ -236,6 +240,7 @@ function actionOK($action){
static $disabled = null;
if(is_null($disabled)){
global $conf;
+ /** @var auth_basic $auth */
global $auth;
// prepare disabled actions array and handle legacy options
@@ -272,7 +277,7 @@ function actionOK($action){
*
* @param string $linktype 'content'|'navigation', content applies to links in wiki text
* navigation applies to all other links
- * @returns boolean true if headings should be used for $linktype, false otherwise
+ * @return boolean true if headings should be used for $linktype, false otherwise
*/
function useHeading($linktype) {
static $useHeading = null;