mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:55:19 +00:00
libxml errors
This commit is contained in:
parent
8eb6dafe31
commit
6531cbd1d2
4 changed files with 7 additions and 6 deletions
|
@ -713,7 +713,6 @@ class ThreadItem {
|
|||
call_hooks('comment_buttons',$arr);
|
||||
$comment_buttons = $arr['comment_buttons'];
|
||||
|
||||
|
||||
$comment_box = replace_macros($template,array(
|
||||
'$return_path' => '',
|
||||
'$threaded' => $this->is_threaded(),
|
||||
|
|
|
@ -18,6 +18,7 @@ class ThreadStream {
|
|||
private $observer = null;
|
||||
private $writable = false;
|
||||
private $commentable = false;
|
||||
private $uploadable = false;
|
||||
private $profile_owner = 0;
|
||||
private $preview = false;
|
||||
private $prepared_item = '';
|
||||
|
|
|
@ -538,7 +538,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
|
|||
}
|
||||
|
||||
elseif ($mode === 'photos') {
|
||||
$profile_onwer = App::$profile['profile_uid'];
|
||||
$profile_owner = App::$profile['profile_uid'];
|
||||
$page_writeable = ($profile_owner == local_channel());
|
||||
$live_update_div = '<div id="live-photos"></div>' . "\r\n";
|
||||
// for photos we've already formatted the top-level item (the photo)
|
||||
|
|
|
@ -671,11 +671,12 @@ function parse_xml_string($s,$strict = true) {
|
|||
libxml_use_internal_errors(true);
|
||||
|
||||
$x = @simplexml_load_string($s2);
|
||||
if(! $x) {
|
||||
if($x === false) {
|
||||
logger('libxml: parse: error: ' . $s2, LOGGER_DATA);
|
||||
foreach(libxml_get_errors() as $err)
|
||||
logger('libxml: parse: ' . $err->code." at ".$err->line.":".$err->column." : ".$err->message, LOGGER_DATA);
|
||||
|
||||
foreach(libxml_get_errors() as $err) {
|
||||
logger('libxml: parse: ' . $err->code . ' at ' . $err->line
|
||||
. ':' . $err->column . ' : ' . $err->message, LOGGER_DATA);
|
||||
}
|
||||
libxml_clear_errors();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue