diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/directory.php | 2 | ||||
-rw-r--r-- | mod/dreport.php | 5 | ||||
-rw-r--r-- | mod/page.php | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/mod/directory.php b/mod/directory.php index 3c230e173..4ab118b17 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -121,6 +121,8 @@ function directory_content(&$a) { } if(! $url) { $directory = find_upstream_directory($dirmode); + if((! $directory) || (! array_key_exists('url',$directory)) || (! $directory['url'])) + logger('CRITICAL: No directory server URL'); $url = $directory['url'] . '/dirsearch'; } diff --git a/mod/dreport.php b/mod/dreport.php index c320bf0e6..1ad1eca7c 100644 --- a/mod/dreport.php +++ b/mod/dreport.php @@ -56,7 +56,7 @@ function dreport_content(&$a) { return; } - + $o .= '<div class="generic-content-wrapper-styled">'; $o .= '<h2>' . sprintf( t('Delivery report for %1$s'),substr($mid,0,32)) . '...' . '</h2>'; $o .= '<table>'; @@ -121,6 +121,7 @@ function dreport_content(&$a) { $o .= '<tr><td width="40%">' . $rr['name'] . '</td><td width="20%">' . escape_tags($rr['dreport_result']) . '</td><td width="20%">' . escape_tags($rr['dreport_time']) . '</td></tr>'; } $o .= '</table>'; + $o .= '</div>'; return $o; @@ -135,4 +136,4 @@ function dreport_gravity_sort($a,$b) { return strcmp($a['name'],$b['name']); } return (($a['gravity'] > $b['gravity']) ? 1 : (-1)); -}
\ No newline at end of file +} diff --git a/mod/page.php b/mod/page.php index b635a60f2..ae572ca1e 100644 --- a/mod/page.php +++ b/mod/page.php @@ -131,6 +131,10 @@ function page_content(&$a) { xchan_query($r); $r = fetch_post_tags($r,true); + + if($r[0]['mimetype'] === 'application/x-pdl') + $a->page['pdl_content'] = true; + $o .= prepare_page($r[0]); return $o; |