Update of /cvsroot/php-blog/jBlog
In directory sc8-pr-cvs1:/tmp/cvs-serv9160
Modified Files:
jBlog_functions.inc.php
Log Message:
suppress error message when the open failed
Index: jBlog_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/jBlog/jBlog_functions.inc.php,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- jBlog_functions.inc.php 11 Mar 2003 18:22:06 -0000 1.54
+++ jBlog_functions.inc.php 11 Mar 2003 18:53:15 -0000 1.55
@@ -356,7 +356,7 @@
foreach ($comments as $comment) {
$link = empty($comment['url']) ? $comment['email'] : $comment['url'];
$name = empty($comment['author']) ? 'Anonymous' : $comment['author'];
- $type = $comment['type'] == 'TRACKBACK' ? 'Trackback from' : 'Posted by';
+ $type = $comment['type'] == 'trackback' ? 'Trackback from' : 'Posted by';
?>
<tr>
<td class="jBlog_comment">
@@ -650,8 +650,10 @@
}
function jBlog_reference_autodiscover($loc, $url, $author, $title, $text) {
- $fp = fopen($loc, "r");
- if(!$fp) { return; }
+ $fp = @fopen($loc, "r");
+ if(!$fp) {
+ return;
+ }
while(!feof($fp)) {
$res .= fgets($fp, 1024);
}
|