$entry=$types[$errno].": $message in $filename on line $line.";
if($errno&E_ALL^E_NOTICE){
watchdog("error",$types[$errno].": $message in $filename on line$line.");
watchdog('error',t('%error: %message in %file on line %line.',array('%error'=>$types[$errno],'%message'=>$message,'%file'=>$filename,'%line'=>$line)));
if(error_reporting()){
print"<pre>$entry</pre>";
}
...
...
@@ -631,7 +631,7 @@ function valid_input_data($data) {
watchdog('error',t('aggregator: failed to parse RSS feed "%site": %error at line %line.',array('%site'=>$feed['title'],'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser))));
$message=t('failed to parse RSS feed "%site": %error at line %line.',array('%site'=>$feed['title'],'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser)));
watchdog('error',t('aggregator: failed to parse RSS feed "%site": %error at line %line.',array('%site'=>$feed['title'],'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser))));
$message=t('failed to parse RSS feed "%site": %error at line %line.',array('%site'=>$feed['title'],'%error'=>xml_error_string(xml_get_error_code($xml_parser)),'%line'=>xml_get_current_line_number($xml_parser)));
@@ -142,7 +142,7 @@ function blogapi_new_post($req_params) {
$nid=node_save($node);
if($nid){
watchdog('special',"$node->type: added '$node->title' using blog API",l(t('view post'),"node/view/$nid"));
watchdog('special',t('%node-type: added "%node-title" using blog API',array('%node-type'=>t("$node->type"),'%node-title'=>$node->title)),l(t('view post'),"node/view/$nid"));
returnnewxmlrpcresp(newxmlrpcval($nid,'string'));
}
...
...
@@ -202,7 +202,7 @@ function blogapi_edit_post($req_params) {
}
$nid=node_save($node);
if($nid){
watchdog('special',"$node->type: updated '$node->title' using blog API",l(t('view post'),"node/view/$nid"));
watchdog('special',t('%node-type: updated "%node-title" using blog API',array('%node-type'=>t("$node->type"),'%node-title'=>$node->title)),l(t('view post'),"node/view/$nid"));
@@ -142,7 +142,7 @@ function blogapi_new_post($req_params) {
$nid=node_save($node);
if($nid){
watchdog('special',"$node->type: added '$node->title' using blog API",l(t('view post'),"node/view/$nid"));
watchdog('special',t('%node-type: added "%node-title" using blog API',array('%node-type'=>t("$node->type"),'%node-title'=>$node->title)),l(t('view post'),"node/view/$nid"));
returnnewxmlrpcresp(newxmlrpcval($nid,'string'));
}
...
...
@@ -202,7 +202,7 @@ function blogapi_edit_post($req_params) {
}
$nid=node_save($node);
if($nid){
watchdog('special',"$node->type: updated '$node->title' using blog API",l(t('view post'),"node/view/$nid"));
watchdog('special',t('%node-type: updated "%node-title" using blog API',array('%node-type'=>t("$node->type"),'%node-title'=>$node->title)),l(t('view post'),"node/view/$nid"));
@@ -332,7 +332,7 @@ function comment_post($edit) {
$duplicate=db_result(db_query("SELECT COUNT(cid) FROM {comments} WHERE pid = %d AND nid = %d AND subject = '%s' AND comment = '%s'",$edit["pid"],$edit["nid"],$edit['subject'],$edit['comment']),0);
@@ -500,7 +500,7 @@ function comment_post($edit) {
}
}
else{
watchdog("error","comment: unauthorized comment submitted or comment submitted to a closed node '".$edit['subject']."'");
watchdog('error',t('comment: unauthorized comment submitted or comment submitted to a closed node "%comment-subject"',array('%comment-subject'=>$edit["subject"])));
}
}
...
...
@@ -947,7 +947,7 @@ function comment_admin_edit($id) {
function_comment_delete_thread($comment){
// Delete the comment:
db_query("DELETE FROM {comments} WHERE cid = %d",$comment->cid);
@@ -332,7 +332,7 @@ function comment_post($edit) {
$duplicate=db_result(db_query("SELECT COUNT(cid) FROM {comments} WHERE pid = %d AND nid = %d AND subject = '%s' AND comment = '%s'",$edit["pid"],$edit["nid"],$edit['subject'],$edit['comment']),0);
@@ -500,7 +500,7 @@ function comment_post($edit) {
}
}
else{
watchdog("error","comment: unauthorized comment submitted or comment submitted to a closed node '".$edit['subject']."'");
watchdog('error',t('comment: unauthorized comment submitted or comment submitted to a closed node "%comment-subject"',array('%comment-subject'=>$edit["subject"])));
}
}
...
...
@@ -947,7 +947,7 @@ function comment_admin_edit($id) {
function_comment_delete_thread($comment){
// Delete the comment:
db_query("DELETE FROM {comments} WHERE cid = %d",$comment->cid);