{"action":"created","issue":{"url":"https://api.github.com/repos/pagekit/pagekit/issues/685","repository_url":"https://api.github.com/repos/pagekit/pagekit","labels_url":"https://api.github.com/repos/pagekit/pagekit/issues/685/labels{/name}","comments_url":"https://api.github.com/repos/pagekit/pagekit/issues/685/comments","events_url":"https://api.github.com/repos/pagekit/pagekit/issues/685/events","html_url":"https://github.com/pagekit/pagekit/issues/685","id":162115967,"number":685,"title":"Config options in database not consistently displayed in config()","user":{"login":"xorinzor","id":4212335,"avatar_url":"https://avatars.githubusercontent.com/u/4212335?v=3","gravatar_id":"","url":"https://api.github.com/users/xorinzor","html_url":"https://github.com/xorinzor","followers_url":"https://api.github.com/users/xorinzor/followers","following_url":"https://api.github.com/users/xorinzor/following{/other_user}","gists_url":"https://api.github.com/users/xorinzor/gists{/gist_id}","starred_url":"https://api.github.com/users/xorinzor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorinzor/subscriptions","organizations_url":"https://api.github.com/users/xorinzor/orgs","repos_url":"https://api.github.com/users/xorinzor/repos","events_url":"https://api.github.com/users/xorinzor/events{/privacy}","received_events_url":"https://api.github.com/users/xorinzor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-06-24T10:06:58Z","updated_at":"2016-06-24T15:00:26Z","closed_at":null,"body":"Make sure to provide the following details when submitting your issue. Remove anything that doesn't apply for your scenario. Thanks!\r\n\r\n## Problem\r\n\r\nSo the title might not be the clearest, but when using `App::module('shoutzor')->config('liquidsoap');` it will only show the default config settings as set in the `index.php` file, whereas  `App::config()->get('liquidsoap')` will display the changes to config settings as stored in the database.\r\n\r\nThis is very inconsistent behaviour and IMO not something that would be expected, is this a bug or intended?\r\n\r\nExample:\r\n```\r\n$baseConfig = App::module('shoutzor')->config('liquidsoap'); //Only returns default values as stored in index.php\r\n$config = App::config('liquidsoap')->toArray(); //only returns values that are stored in the DB, it doesn't first fetch the default values from index.php (if nothing is saved before, that means 0 results)\r\n$config = array_merge($baseConfig, $config); //only now you have a proper list of values including changes as stored in the database\r\n```\r\n\r\n## Technical Details\r\n\r\n- Pagekit version:1.0.3\r\n- Webserver: Apache\r\n- Database: MySQL 5.6.31\r\n- PHP Version: 5.6.20-0+deb8u1\r\n\r\n## Troubleshooting\r\n\r\n- [x] I have enabled debug mode: https://pagekit.com/docs/troubleshooting/debug-mode\r\n- [X] I have verified the server requirements: https://pagekit.com/docs/getting-started/requirements\r\n- [X] I have tried disabling all installed extensions\r\n- [X] I have checked the browser developer console for JavaScript errors"},"comment":{"url":"https://api.github.com/repos/pagekit/pagekit/issues/comments/228369749","html_url":"https://github.com/pagekit/pagekit/issues/685#issuecomment-228369749","issue_url":"https://api.github.com/repos/pagekit/pagekit/issues/685","id":228369749,"user":{"login":"xorinzor","id":4212335,"avatar_url":"https://avatars.githubusercontent.com/u/4212335?v=3","gravatar_id":"","url":"https://api.github.com/users/xorinzor","html_url":"https://github.com/xorinzor","followers_url":"https://api.github.com/users/xorinzor/followers","following_url":"https://api.github.com/users/xorinzor/following{/other_user}","gists_url":"https://api.github.com/users/xorinzor/gists{/gist_id}","starred_url":"https://api.github.com/users/xorinzor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xorinzor/subscriptions","organizations_url":"https://api.github.com/users/xorinzor/orgs","repos_url":"https://api.github.com/users/xorinzor/repos","events_url":"https://api.github.com/users/xorinzor/events{/privacy}","received_events_url":"https://api.github.com/users/xorinzor/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T15:00:26Z","updated_at":"2016-06-24T15:00:26Z","body":"You said you deleted the data inside a variable, never the entire variable, that's not going to reproduce the problem I'm having.\r\n\r\nI can guarantee this is an issue with pagekit and can be reproduced in other installations."}}
{"actor":{"display_login":"xorinzor"}}