Merge https://github.com/friendica/red into zpull
This commit is contained in:
commit
033a9f67e7
@ -64,17 +64,18 @@ function channel_content(&$a, $update = 0, $load = false) {
|
|||||||
|
|
||||||
$category = $datequery = $datequery2 = '';
|
$category = $datequery = $datequery2 = '';
|
||||||
|
|
||||||
if(argc() > 2) {
|
// if(argc() > 2) {
|
||||||
for($x = 2; $x < argc(); $x ++) {
|
// for($x = 2; $x < argc(); $x ++) {
|
||||||
if(is_a_date_arg(argv($x))) {
|
// if(is_a_date_arg(argv($x))) {
|
||||||
if($datequery)
|
// if($datequery)
|
||||||
$datequery2 = escape_tags(argv($x));
|
// $datequery2 = escape_tags(argv($x));
|
||||||
else
|
// else
|
||||||
$datequery = escape_tags(argv($x));
|
// $datequery = escape_tags(argv($x));
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
$datequery = ((x($_GET,'dend') && is_a_date_arg($_GET['dend'])) ? notags($_GET['dend']) : '');
|
||||||
|
$datequery2 = ((x($_GET,'dbegin') && is_a_date_arg($_GET['dbegin'])) ? notags($_GET['dbegin']) : '');
|
||||||
|
|
||||||
if(get_config('system','block_public') && (! get_account_id()) && (! remote_user())) {
|
if(get_config('system','block_public') && (! get_account_id()) && (! remote_user())) {
|
||||||
return login();
|
return login();
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
|
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
|
||||||
<select id="posted-date-selector" name="posted-date-select" onchange="dateSubmit($(this).val());" size="{{$size}}">
|
<select id="posted-date-selector" name="posted-date-select" onchange="dateSubmit($(this).val());" size="{{$size}}">
|
||||||
{{foreach $dates as $d}}
|
{{foreach $dates as $d}}
|
||||||
<option value="{{$url}}/{{$d.1}}/{{$d.2}}" >{{$d.0}}</option>
|
<option value="{{$url}}?dend={{$d.1}}&dbegin={{$d.2}}" >{{$d.0}}</option>
|
||||||
{{/foreach}}
|
{{/foreach}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user