1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-14 20:44:02 +02:00

bridges: Return parent::getName by default

This commit is contained in:
logmanoriginal
2017-02-14 22:20:55 +01:00
parent d93d491d8e
commit c4169f1579
29 changed files with 145 additions and 57 deletions

View File

@@ -82,12 +82,16 @@ class PickyWallpapersBridge extends BridgeAbstract {
}
public function getName(){
$subcategory = $this->getInput('s');
return 'PickyWallpapers - '
. $this->getInput('c')
. ($subcategory ? ' > ' . $subcategory : '')
. ' ['
. $this->getInput('r')
. ']';
if(!is_null($this->getInput('s'))){
$subcategory = $this->getInput('s');
return 'PickyWallpapers - '
. $this->getInput('c')
. ($subcategory ? ' > ' . $subcategory : '')
. ' ['
. $this->getInput('r')
. ']';
}
return parent::getName();
}
}