Commit Graph
1939 Commits
Author SHA1 Message Date
Marien Fressinaud 19dfef8b49 Fix bug with Minz_Translate
When a path was registered before initialization, it was not considered unless
by calling reset() method.

This is fixed now.
2015-01-08 16:32:13 +01:00
Marien Fressinaud 85ea5e548a Fix install.php script (choice of lang)
Fix a bug in Minz_Translate too
2015-01-08 15:16:32 +01:00
Marien Fressinaud 8f04cb9d9d Change Minz_Translate::reset() behaviour
- Don't reset the path list (use init() instead)
- init() accept a null lang_name. To use i18n, you'll have to use reset() later.
  It is helpful to load the list of available language before choosing one of them.
2015-01-08 15:05:25 +01:00
Marien Fressinaud a3f667e586 Fix Minz_Translate::availableLanguages() method 2015-01-08 14:50:21 +01:00
Marien Fressinaud 5bd7997d41 Call handleConfigureAction() even for GET requests
See https://github.com/FreshRSS/FreshRSS/issues/252
2015-01-08 14:30:05 +01:00
Marien Fressinaud e86a6097c8 Add a setter for extensions_enabled config value 2015-01-08 14:22:20 +01:00
Marien Fressinaud 73023bc12b Merge branch 'dev' into 252-extensions
Conflicts:
	app/FreshRSS.php
	app/Models/Configuration.php
	app/views/index/index.phtml
	app/views/index/normal.phtml
	lib/Minz/Configuration.php
	lib/Minz/Translate.php
	lib/lib_rss.php
2015-01-08 14:18:32 +01:00
Marien Fressinaud 0e4e16ac55 Fix saving system config file
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-08 12:22:13 +01:00
Marien Fressinaud 2ac732ec6d Fix i18n in install.php
Init i18n must be done before check steps
2015-01-08 12:15:09 +01:00
Marien Fressinaud 59abb0c754 Fix i18n in install.php 2015-01-08 12:12:41 +01:00
Marien Fressinaud 46e98bad91 Merge branch '730-improve_configuration' into dev
BREAKING FEATURE: please follow instructions from
https://github.com/FreshRSS/FreshRSS/issues/730 to
update your configuration file.

Fix https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-08 10:27:01 +01:00
Marien Fressinaud 9265cd5733 Add system config setter methods
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 18:55:18 +01:00
Marien Fressinaud 7e81e67aed Add setters for the user configurations
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 18:16:57 +01:00
Marien Fressinaud fb614ab80c Change way to call configuration setter.
- Add a support($key) method which return if the given key is supported by
  the setter.
- Change handle signature by adding a $data param which must be passed by
  reference.

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 17:36:29 +01:00
Marien Fressinaud 2fd8a80878 Add first test for a generic ConfigurationSetter
We are blocked if a setter has to update several values.
ConfigurationSetter will be updated.

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 16:36:55 +01:00
Marien Fressinaud 4c128e05a4 Reorganize FreshRSS init
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 16:13:57 +01:00
Marien Fressinaud 7f12058fab Add a method to change the configuration setter
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 16:09:24 +01:00
Marien Fressinaud 91e2d4936d Add support of configuration_setter
A configuration setter must implement only one method: `handle($key, $value)`.
Before setting a value in configuration, the setter will be called with this
method to check its validity.
If a setter has been assigned to a configuration object, it will be called for
each of its data so be careful to always return a value (or null if you want
to delete the key).

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 15:57:27 +01:00
Marien Fressinaud 9c8a80e57f Remove .gitkeep in data/users/_/ 2015-01-07 15:39:24 +01:00
Marien Fressinaud 09545b0a65 Fix calls to remove_query_by_get()
The function has been moved into lib_rss.php

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 15:37:24 +01:00
Marien Fressinaud 0140448a56 Refactor FreshRSS_Share object to be more usable
- FreshRSS_Share is the only object we manipulate
- Add a way to register new share options easily
- Move some i18n keys from index.php to gen.php

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 14:59:18 +01:00
Marien Fressinaud bd199c6170 If a conf param doesn't exist, log and return null
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-07 10:48:47 +01:00
Marien Fressinaud ce10f48274 Fix a bug in i18n init
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 23:20:54 +01:00
Marien Fressinaud 60563283cc Fix greader api script with new config system
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 23:16:57 +01:00
Marien Fressinaud c96e1d9aec Coding style in actualize_script 2015-01-06 23:07:57 +01:00
Marien Fressinaud cf406fc575 Fix a bug of authentication in actualize_script
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 23:06:17 +01:00
Marien Fressinaud 8e6ab12e89 Fix a bug in FreshRSS_Auth::giveAccess()
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 22:43:24 +01:00
Marien Fressinaud ce9298439b Fix a call to $system_conf
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 22:15:51 +01:00
Marien Fressinaud ff1e989de1 Fix a call to availableLanguages() (bad object)
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 22:14:14 +01:00
Marien Fressinaud 5cdfd6d493 Fix and improve actualize_script
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 22:12:48 +01:00
Marien Fressinaud eff804572f Fix setters on $user_conf
Old setters does not exist anymore, remove them.

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 21:54:46 +01:00
Marien Fressinaud dd41642ce6 Fix calls to FreshRSS_Configuration
Replaced by a get_user_configuration() function in lib_rss.
This function register a new configuration based on the given username
and return the corresponding configuration.

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 21:40:19 +01:00
Marien Fressinaud 17a280230f Change Minz_Configuration::parseFile() in load()
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 21:16:33 +01:00
Marien Fressinaud addcea9cd4 Fix i18n loading and availableLanguages calls
- Change the way to init i18n
- Add a availableLanguages() method to Minz_Translate

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 21:10:51 +01:00
Marien Fressinaud 5f9672111f Fix last calls to Minz_Configuration methods
- We have still to fix actualize_script and greader api (refactoring?)
- We have to fix the FreshRSS_Configuration calls
- We have to fix availableLanguages calls

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 20:50:58 +01:00
Marien Fressinaud d3a93ea290 BREAKING FEATURE: Remove general in config
General attribute has been removed from system config.
Now subattributes (e.g. environment, salt, title, etc.) are directly accessible.

YOU HAVE TO FIX YOUR ./data/config.php file!

- Remove the general array
- Values inside this array must be kept
- To see what it must look like, please have a look to ./data/config.default.php
  (but keep your values!!).

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 18:53:36 +01:00
Marien Fressinaud d27efeec04 Fix Controllers to use the correct config system
See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-06 17:38:31 +01:00
Marien Fressinaud 7cca47d1ab Change name of user configuration var in Context
- FreshRSS_Context::$conf is replaced by FreshRSS_Context::$user_conf
- Introduce FreshRSS_Context::$system_conf
- Remove FreshRSS_Configuration object

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-05 22:45:03 +01:00
Marien Fressinaud 51a71ec4b9 New configuration system (not working yet)
- Use only Minz_Configuration
- register() method to load a new configuration file
- get() to get a configuration
- new exceptions related to configuration
- fix a list configuration calls to have FRSS working

Current problems to resolve:

- How to handle configuration param verifications (i.e. check auth_type
  is a value from none, http_auth, persona or form)
- We must use $conf = Minz_Configuration::get('system'); $general_conf = $conf->general;
  to access global system configuration which is quite annoying. How to change that?

See https://github.com/FreshRSS/FreshRSS/issues/730
2015-01-05 16:54:16 +01:00
Marien Fressinaud 7584364a4c Fix behaviour when favicon url is not found
If url is not find, we copy default favicon into favicon dir so at the next
try, we don't search the url again.

See https://github.com/FreshRSS/FreshRSS/issues/290
See https://github.com/FreshRSS/FreshRSS/issues/727
2014-12-29 11:56:22 +01:00
Marien Fressinaud fcc92fbdf7 Merge branch '290-favicons' into dev 2014-12-29 11:46:31 +01:00
Marien Fressinaud ea79466582 Fix typo coding style
See https://github.com/FreshRSS/FreshRSS/issues/290
2014-12-29 11:46:01 +01:00
Marien Fressinaud 4f1fc70f87 Change favicon getter behaviour
- Use Favicon library
- Fix coding style
- Change default favicon

Fix https://github.com/FreshRSS/FreshRSS/issues/290
2014-12-29 11:44:25 +01:00
Marien Fressinaud d234304580 Add files for the new favicon system
Use https://github.com/ArthurHoaro/favicon
See https://github.com/FreshRSS/FreshRSS/issues/290
2014-12-29 11:22:22 +01:00
Marien Fressinaud 249a474703 Fix i18n for check installation
Add keys for user directory checking

See https://github.com/FreshRSS/FreshRSS/issues/729
2014-12-28 19:59:07 +01:00
Marien Fressinaud 0cd975bfd0 Merge branch '729-move_data' into dev
To update, please follow instructions in https://github.com/FreshRSS/FreshRSS/issues/729
2014-12-28 19:46:04 +01:00
Marien Fressinaud 497d295be4 Add a default users/_ dir
Useful for default log path

See https://github.com/FreshRSS/FreshRSS/issues/729
2014-12-28 19:35:20 +01:00
Marien Fressinaud c391ca62f1 Remove all old references to LOG_PATH
See https://github.com/FreshRSS/FreshRSS/issues/729
2014-12-28 18:05:02 +01:00
Marien Fressinaud 039a83759d Fix install.php to consider new data organization
- Introduce USERS_PATH
- Remove LOG_PATH
- Use join_path in install.php
- Change references to old  data files to the new ones
- Update i18n

See https://github.com/FreshRSS/FreshRSS/issues/729
2014-12-28 17:42:46 +01:00
Marien Fressinaud 7a967e68ad Merge branch 'dev' into 729-move_data 2014-12-21 17:54:37 +01:00