Merge pull request #4163 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
This commit is contained in:
commit
94fd57408c
3
feed.php
3
feed.php
|
@ -10,6 +10,7 @@
|
|||
* @global Input $INPUT
|
||||
*/
|
||||
|
||||
use dokuwiki\Feed\FeedCreatorOptions;
|
||||
use dokuwiki\Cache\Cache;
|
||||
use dokuwiki\ChangeLog\MediaChangeLog;
|
||||
use dokuwiki\ChangeLog\PageChangeLog;
|
||||
|
@ -29,7 +30,7 @@ if (!actionOK('rss')) {
|
|||
exit;
|
||||
}
|
||||
|
||||
$options = new \dokuwiki\Feed\FeedCreatorOptions();
|
||||
$options = new FeedCreatorOptions();
|
||||
|
||||
// the feed is dynamic - we need a cache for each combo
|
||||
// (but most people just use the default feed so it's still effective)
|
||||
|
|
|
@ -115,6 +115,7 @@ class FeedCreator
|
|||
|
||||
$ns = ':' . cleanID($this->options->get('namespace'));
|
||||
$ns = utf8_encodeFN(str_replace(':', '/', $ns));
|
||||
|
||||
$data = [];
|
||||
$search_opts = [
|
||||
'depth' => 1,
|
||||
|
|
|
@ -130,10 +130,7 @@ class FeedCreatorOptions
|
|||
*/
|
||||
public function get($option, $default = null)
|
||||
{
|
||||
if (isset($this->options[$option])) {
|
||||
return $this->options[$option];
|
||||
}
|
||||
return $default;
|
||||
return $this->options[$option] ?? $default;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue