Modifie le chemin d'accès à la base
This commit is contained in:
parent
fb71f8c112
commit
45f726b537
@ -30,7 +30,7 @@ function getResult()
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getLinks(){
|
public function getLinks(){
|
||||||
if($linksXML = @simplexml_load_file('../db/blog_links.xml')){
|
if($linksXML = @simplexml_load_file($this->pathToModule.'db/blog_links.xml')){
|
||||||
foreach($linksXML->link as $individualLink){
|
foreach($linksXML->link as $individualLink){
|
||||||
$this->link[] = array('name'=>$individualLink->name, 'url'=>$individualLink->url, 'number'=>$individualLink->number);
|
$this->link[] = array('name'=>$individualLink->name, 'url'=>$individualLink->url, 'number'=>$individualLink->number);
|
||||||
}
|
}
|
||||||
@ -70,7 +70,7 @@ function getTitle($result = null, $url = null)
|
|||||||
if(isset($title[1]))
|
if(isset($title[1]))
|
||||||
return $title[1];
|
return $title[1];
|
||||||
else
|
else
|
||||||
return 'Erreur : pas de titre de blog trouv<EFBFBD>.';
|
return 'Erreur : pas de titre de blog trouvé.';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user