Subversion Repositories eFlore/Applications.cel

Rev

Rev 3565 | Rev 3567 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3565 Rev 3566
Line 809... Line 809...
809
		$resultat = Cel::db()->requeter($requete);
809
		$resultat = Cel::db()->requeter($requete);
810
		$id_image = $resultat[0]['id'] ?? false;
810
		$id_image = $resultat[0]['id'] ?? false;
Line 811... Line 811...
811
 
811
 
812
		if ($id_image) {
812
		if ($id_image) {
813
			$full_id_image = str_pad($id_image, 9, '0', STR_PAD_LEFT) . 'O';
813
			$full_id_image = str_pad($id_image, 9, '0', STR_PAD_LEFT) . 'O';
814
			$image_url = sprintf(config::get('celImgUrlTpl'), $full_id_image);
814
			$image_url = sprintf($this->config['settings']['celImgUrlTpl'], $full_id_image);
815
			$requete = 'UPDATE photo'
815
			$requete = 'UPDATE photo'
816
				. ' SET url = ' . Cel::db()->proteger($image_url)
816
				. ' SET url = ' . Cel::db()->proteger($image_url)
817
				. ' WHERE id = ' . Cel::db()->proteger($id_image);
817
				. ' WHERE id = ' . Cel::db()->proteger($id_image);
818
			$resultat = Cel::db()->requeter($requete);
818
			$resultat = Cel::db()->requeter($requete);