cvsimport fixups

This commit is contained in:
Martin Langhoff
2007-08-29 13:10:11 +12:00
parent 59aa15d650
commit 13534ef716
73 changed files with 454 additions and 19869 deletions
+2 -2
View File
@@ -682,7 +682,7 @@ function file_modify_html_header($text) {
preg_match('/\<html\>|\<HTML\>/', $text, $matches);
if ($matches) {
// replace <html> tag with <html><head>includes</head>
$replacement = '<html>."\n".<head>'.$ufo.$stylesheetshtml.'</head>';
$replacement = '<html>'."\n".'<head>'.$ufo.$stylesheetshtml.'</head>';
$text = preg_replace('/\<html\>|\<HTML\>/', $replacement, $text, 1);
return $text;
}
@@ -690,7 +690,7 @@ function file_modify_html_header($text) {
// if not, look for <body> tag, and stick <head> before body
preg_match('/\<body\>|\<BODY\>/', $text, $matches);
if ($matches) {
$replacement = '<head>'.$ufo.$stylesheetshtml.'</head>."\n".<body>';
$replacement = '<head>'.$ufo.$stylesheetshtml.'</head>'."\n".'<body>';
$text = preg_replace('/\<body\>|\<BODY\>/', $replacement, $text, 1);
return $text;
}