Allow over-riding the default lists in the user config

This commit is contained in:
Timothy Warren 2017-03-30 16:47:02 -04:00
parent 5ae6864a3f
commit fa4ee22100
2 changed files with 21 additions and 4 deletions

View File

@ -0,0 +1,19 @@
################################################################################
# Route config
#
# Default views and paths
################################################################################
# Path to public directory, where images/css/javascript are located,
# appended to the url
asset_path = "/public"
# Which list should be the default?
default_list = "anime" # anime or manga
# Default pages for anime/manga
default_anime_list_path = "watching" # watching|plan_to_watch|on_hold|dropped|completed|all
default_manga_list_path = "reading" # reading|plan_to_read|on_hold|dropped|completed|all
# Default view type (cover_view/list_view)
default_view_type = "cover_view"

View File

@ -71,11 +71,9 @@ class RoutingBase {
*/ */
public function __get($key) public function __get($key)
{ {
$routingConfig =& $this->routeConfig; if (array_key_exists($key, $this->routeConfig))
if (array_key_exists($key, $routingConfig))
{ {
return $routingConfig[$key]; return $this->routeConfig[$key];
} }
} }