Release version 1.0.0
Dieser Commit ist enthalten in:
Ursprung
7d1f043bed
Commit
d098573903
18 geänderte Dateien mit 312 neuen und 287 gelöschten Zeilen
|
|
@ -55,7 +55,7 @@ abstract class ModRewriteBase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns configuration of mod rewrite, content of gobal $cfg['mod_rewrite']
|
||||
* Returns configuration of mod rewrite, content of gobal $cfg['cl-mod-rewrite']
|
||||
*
|
||||
* @param string $key Name of configuration key
|
||||
* @param mixed $default Default value to return as a fallback
|
||||
|
|
@ -65,23 +65,23 @@ abstract class ModRewriteBase {
|
|||
public static function getConfig($key = null, $default = null) {
|
||||
global $cfg;
|
||||
if ($key == null) {
|
||||
return $cfg['mod_rewrite'];
|
||||
return $cfg['cl-mod-rewrite'];
|
||||
} elseif ((string) $key !== '') {
|
||||
return (isset($cfg['mod_rewrite'][$key])) ? $cfg['mod_rewrite'][$key] : $default;
|
||||
return (isset($cfg['cl-mod-rewrite'][$key])) ? $cfg['cl-mod-rewrite'][$key] : $default;
|
||||
} else {
|
||||
return $default;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the configuration of mod rewrite, content of gobal $cfg['mod_rewrite']
|
||||
* Sets the configuration of mod rewrite, content of gobal $cfg['cl-mod-rewrite']
|
||||
*
|
||||
* @param string $key Name of configuration key
|
||||
* @param mixed $value The value to set
|
||||
*/
|
||||
public static function setConfig($key, $value) {
|
||||
global $cfg;
|
||||
$cfg['mod_rewrite'][$key] = $value;
|
||||
$cfg['cl-mod-rewrite'][$key] = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren