Commit 4e0cbb2a authored by Michael Chaudhary's avatar Michael Chaudhary Committed by Robert Nix

Update CustomLogs

parent c02c98ff
# Usage
## Creating Custom Logs
* Create the page MediaWiki:Customlogs. It should be a comma-separated list of log names.
* Set $wgCustomLogsLogs in localsettings as a list of log names/keys.
* For this example we'll say you want to create a log named "kittens"
* Create the page MediaWiki:Log-name-kittens with the name of the log, for example "Kitten Log"
* Create the page MediaWiki:Logentry-custom-kittens with the display text for the log
......
......@@ -18,6 +18,7 @@
"CustomLogCreator::createLog"
],
"config": {
"CustomLogsLogs": [],
"CustomLogsMaxCustomParams": 3
},
"AutoloadClasses" : {
......
......@@ -11,7 +11,7 @@ class CustomLogCreator {
}
public static function getCustomLogList() {
$logMessageContent = wfMessage('customlogs')->plain();
return preg_split('/\s*,\s*/',$logMessageContent);
global $wgCustomLogsLogs;
return $wgCustomLogsLogs;
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment