Commit e0c99dfa authored by Nicolas Nambinintsoa's avatar Nicolas Nambinintsoa
Browse files

Merge branch 'master' into qa

parents 8af307bb 7a80739a
......@@ -652,7 +652,7 @@ function checkAndCutLongString(text,limitLength,idNews){
if(text.length > limitLength){
text=text.substring(0,limitLength);
if(limitLength==500){
text += "<span class='removeReadNews'> ...<br><a href='javascript:;' onclick='blankNews(\""+idNews+"\")'>Lire la suite</a></span>";
text += "<span class='removeReadNews'> ...<br><a href='javascript:;' onclick='blankNews(\""+idNews+"\")'>"+trad.readmore+"</a></span>";
}else{
text += " ..."
}
......
......@@ -24,6 +24,14 @@ class NewsController extends ApiController {
)*/
);
}
public function actionGetPageContent(){
if(isset($_POST['url'])){
echo file_get_contents($_POST['url']);;
}else{
echo "";
}
}
}
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment