Allow over-riding the default lists in the user config
This commit is contained in:
parent
ffd034220c
commit
f8f499520e
19
app/config/route_config.toml.example
Normal file
19
app/config/route_config.toml.example
Normal 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"
|
@ -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];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user