Aggiunta funzione di ricerca shortened url su articolo mobile
Signed-off-by: Riccardo Di Dato <r.didato@asdynamics.it>
This commit is contained in:
@@ -14,6 +14,10 @@ try {
|
||||
if (array_key_exists("id", $_GET)){
|
||||
$articolo = GlobalVariables::get("dao")->getFirst("NotiziaModel",array("id"=>$_GET["id"],"status"=>NotiziaModel::STATUS_ACCEPTED));
|
||||
}
|
||||
else if (array_key_exists("short", $_GET) ) {
|
||||
$short = strval($_GET["short"]);
|
||||
$articolo = GlobalVariables::get("dao")->getFirst("NotiziaModel",array("shortenedUrl"=> $short ,"status"=>NotiziaModel::STATUS_ACCEPTED));
|
||||
}
|
||||
if (is_null($articolo)){
|
||||
GUIHandlerMobile::redirect("index.php");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user