diff options
| author | 2013-11-17 01:35:06 +0100 | |
|---|---|---|
| committer | 2013-11-17 01:35:06 +0100 | |
| commit | b8c4afadf4bff7ac282ac5933eedccb1c666d873 (patch) | |
| tree | aef58395f1aecf027532fdc579b73084edfb8aa8 /public | |
| parent | a532a023633ac692bd573d4ec29b7871e8e4c19f (diff) | |
Nouveau fichier constants.php
En particulier pour stocker le numéro de version de FreshRSS utilisé
entre autres par https://github.com/marienfressinaud/FreshRSS/issues/174
et centraliser les constantes de chemins
Implémente https://github.com/marienfressinaud/FreshRSS/issues/271
Diffstat (limited to 'public')
| -rwxr-xr-x | public/index.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/public/index.php b/public/index.php index 1a1651707..bda585592 100755 --- a/public/index.php +++ b/public/index.php @@ -18,12 +18,7 @@ # # ***** END LICENSE BLOCK ***** -// Constantes de chemins -define ('PUBLIC_PATH', realpath (dirname (__FILE__))); -define ('LIB_PATH', realpath (PUBLIC_PATH . '/../lib')); -define ('APP_PATH', realpath (PUBLIC_PATH . '/../app')); -define ('LOG_PATH', realpath (PUBLIC_PATH . '/../log')); -define ('CACHE_PATH', realpath (PUBLIC_PATH . '/../cache')); +require('../constants.php'); if (file_exists (PUBLIC_PATH . '/install.php')) { include ('install.php'); |
