Fix bug
This commit is contained in:
parent
d3ba5c55a7
commit
30831392e9
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
<?php
|
||||
define('ROOT_DIR', dirname($_SERVER['SCRIPT_FILENAME']));
|
||||
if(!defined('ROOT_DIR'))
|
||||
{
|
||||
define('ROOT_DIR', dirname($_SERVER['SCRIPT_FILENAME']));
|
||||
}
|
||||
define('LOCAL_URI', '');
|
||||
date_default_timezone_set('Europe/Paris');
|
||||
setlocale(LC_TIME, 'fr_FR.UTF-8', 'fr_FR', 'fr');
|
||||
|
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
/* modtime 2013-01-23 */
|
||||
|
||||
define('ROOT_DIR', __DIR__);
|
||||
if(file_exists("config.php")){
|
||||
include "config.php";
|
||||
}else{
|
||||
define('ROOT_DIR', __DIR__);
|
||||
}
|
||||
echo ROOT_DIR;
|
||||
|
||||
function get_title_from_feed($url)
|
||||
{
|
||||
// get site title from feed
|
||||
|
|
Loading…
Reference in a new issue