try again with shutdown handler, fix issue #373 (live-pubstream div wasn't present

This commit is contained in:
redmatrix
2016-05-10 01:30:22 -07:00
parent baa7020036
commit 0c5434d5e3
4 changed files with 17 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
if(! $maxheight)
$maxheight = 400;
$o .= '<div id="live-public"></div>' . "\r\n";
$o .= '<div id="live-pubstream"></div>' . "\r\n";
$o .= "<script> var profile_uid = " . ((intval(local_channel())) ? local_channel() : (-1))
. "; var profile_page = " . \App::$pager['page']
. "; divmore_height = " . intval($maxheight) . "; </script>\r\n";
@@ -161,7 +161,7 @@ class Pubstream extends \Zotlabs\Web\Controller {
if(($items) && (! $update))
$o .= alt_pager($a,count($items));
return $o;
}

View File

@@ -7,7 +7,7 @@ namespace Zotlabs\Module;
class Update_pubstream extends \Zotlabs\Web\Controller {
function get() {
$profile_uid = ((intval($_GET['p'])) ? intval($_GET['p']) : (-1));
$load = (((argc() > 1) && (argv(1) == 'load')) ? 1 : 0);
header("Content-type: text/html");