generate_syndicated_feed: timestamp is a strtotime() expression, not an integer
This commit is contained in:
parent
2d1391a02b
commit
f96abd2b52
|
@ -1,9 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
class Handler_Public extends Handler {
|
class Handler_Public extends Handler {
|
||||||
|
|
||||||
private function generate_syndicated_feed($owner_uid, $feed, $is_cat,
|
// $feed may be a tag
|
||||||
$limit, $offset, $search,
|
private function generate_syndicated_feed(int $owner_uid, string $feed, bool $is_cat,
|
||||||
$view_mode = false, $format = 'atom', $order = false, $orig_guid = false, $start_ts = false) {
|
int $limit, int $offset, string $search, string $view_mode = "",
|
||||||
|
string $format = 'atom', string $order = "", string $orig_guid = "", string $start_ts = "") {
|
||||||
|
|
||||||
$note_style = "background-color : #fff7d5;
|
$note_style = "background-color : #fff7d5;
|
||||||
border-width : 1px; ".
|
border-width : 1px; ".
|
||||||
|
@ -48,10 +49,10 @@ class Handler_Public extends Handler {
|
||||||
//$tmppluginhost->load_data();
|
//$tmppluginhost->load_data();
|
||||||
|
|
||||||
$handler = $tmppluginhost->get_feed_handler(
|
$handler = $tmppluginhost->get_feed_handler(
|
||||||
PluginHost::feed_to_pfeed_id($feed));
|
PluginHost::feed_to_pfeed_id((int)$feed));
|
||||||
|
|
||||||
if ($handler) {
|
if ($handler) {
|
||||||
$qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id($feed), $params);
|
$qfh_ret = $handler->get_headlines(PluginHost::feed_to_pfeed_id((int)$feed), $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
@ -304,7 +305,7 @@ class Handler_Public extends Handler {
|
||||||
$search = clean($_REQUEST["q"] ?? "");
|
$search = clean($_REQUEST["q"] ?? "");
|
||||||
$view_mode = clean($_REQUEST["view-mode"] ?? "");
|
$view_mode = clean($_REQUEST["view-mode"] ?? "");
|
||||||
$order = clean($_REQUEST["order"] ?? "");
|
$order = clean($_REQUEST["order"] ?? "");
|
||||||
$start_ts = (int)clean($_REQUEST["ts"] ?? 0);
|
$start_ts = clean($_REQUEST["ts"] ?? "");
|
||||||
|
|
||||||
$format = clean($_REQUEST['format'] ?? "atom");
|
$format = clean($_REQUEST['format'] ?? "atom");
|
||||||
$orig_guid = clean($_REQUEST["orig_guid"] ?? false);
|
$orig_guid = clean($_REQUEST["orig_guid"] ?? false);
|
||||||
|
|
Loading…
Reference in New Issue