This commit is contained in:
Bronco 2013-10-16 23:24:18 +02:00
parent 553f6cb3a1
commit 8ed9c43e67

View file

@ -692,6 +692,7 @@ function complete_url($url) {
}
function add_table_and_replace(&$data, $retrievable, &$match1, $match, $url_p, $type) {
global $GLOBAL;
// get the filenam (basename)
$nom_fichier = (preg_match('#^https?://#', $match)) ? pathinfo(parse_url($match, PHP_URL_PATH), PATHINFO_BASENAME) : pathinfo($match, PATHINFO_BASENAME);
// get the URL. For relatives URL, uses the GLOBALS[url] tu make the complete URL