From 8ed9c43e6767eea4ee618881ae28a7048642100b Mon Sep 17 00:00:00 2001 From: Bronco Date: Wed, 16 Oct 2013 23:24:18 +0200 Subject: [PATCH] issue #11 (2) --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index b3a85b7..12e56d1 100644 --- a/index.php +++ b/index.php @@ -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