Commentaires obligés sur les POIs
This commit is contained in:
@@ -21,7 +21,7 @@ switch ($controller->splitted_url[1]) {
|
|||||||
$poi->ele = $_POST['ele'];
|
$poi->ele = $_POST['ele'];
|
||||||
$poi->author = $user->id;
|
$poi->author = $user->id;
|
||||||
$poi->source = "kab";
|
$poi->source = "kab";
|
||||||
$poi->is_commentable = isset($_POST['is_commentable']) ? 't' : 'f';
|
$poi->is_commentable = 't';
|
||||||
|
|
||||||
$definition = $poi_types[$poi->poi_type][5];
|
$definition = $poi_types[$poi->poi_type][5];
|
||||||
$params = [];
|
$params = [];
|
||||||
@@ -148,9 +148,7 @@ switch ($controller->splitted_url[1]) {
|
|||||||
$poi->lat = $_POST['lat'];
|
$poi->lat = $_POST['lat'];
|
||||||
$poi->lon = $_POST['lon'];
|
$poi->lon = $_POST['lon'];
|
||||||
$poi->ele = $_POST['ele'];
|
$poi->ele = $_POST['ele'];
|
||||||
$poi->author = $user->id;
|
$poi->is_commentable = 't';
|
||||||
$poi->source = "kab";
|
|
||||||
$poi->is_commentable = isset($_POST['is_commentable']) ? 't' : 'f';
|
|
||||||
|
|
||||||
$definition = $poi_types[$poi->poi_type][5];
|
$definition = $poi_types[$poi->poi_type][5];
|
||||||
$params = [];
|
$params = [];
|
||||||
|
|||||||
@@ -187,11 +187,6 @@ $(document).ready(function(){
|
|||||||
<p id="abstract"></p>
|
<p id="abstract"></p>
|
||||||
<div id="specific_form"></div>
|
<div id="specific_form"></div>
|
||||||
|
|
||||||
<label for="is_commentable">
|
|
||||||
<input type="checkbox" name="is_commentable" id="is_commentable" <?=$poi->is_commentable ? 'checked' : ''?> />
|
|
||||||
<span>Autoriser les commentaires</span>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<? if(isset($new) AND $new==1) { ?>
|
<? if(isset($new) AND $new==1) { ?>
|
||||||
<div id="permalink_container">
|
<div id="permalink_container">
|
||||||
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>poi/</label>
|
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>poi/</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user