svn: /phd/trunk/phpdotnet/phd/Package/Generic/ XHTML.php
| From: | Richard Quadling | Date: | Mon, 02 Nov 2009 10:20:18 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/Package/Generic/ XHTML.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-5265@lists.php.net to get a copy of this message | ||
rquadling Mon, 02 Nov 2009 10:20:18 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290140
Log:
v() calls are sprintf compliant. (Thank you to Hannes for pointing this out).
Changed paths:
U phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
Modified: phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2009-11-02 10:18:41 UTC (rev 290139)
+++ phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2009-11-02 10:20:18 UTC (rev 290140)
@@ -534,7 +534,7 @@
if ($style = file_get_contents($css)) {
$this->stylesheets[] = $style;
} else {
- v(sprintf("Stylesheet %s not fetched.", $css), E_USER_WARNING);
+ v("Stylesheet %s not fetched.", $css, E_USER_WARNING);
}
}
return;
@@ -559,7 +559,7 @@
if (@copy($css, $stylesDir . $dest)) {
$this->stylesheets[] = $dest;
} else {
- v(sprintf('Impossible to copy the %s file.', $css), E_USER_WARNING);
+ v('Impossible to copy the %s file.', $css, E_USER_WARNING);
}
}
}
@@ -1313,10 +1313,10 @@
// Generate warnings when only 1 dimension supplied or alt is not supplied.
if (!$width xor !$height) {
- v('Missing ' . (!$width ? 'width' : 'height') .
' attribute for ' . $file, VERBOSE_MISSING_ATTRIBUTES);
+ v('Missing %s attribute for %s', (!$width ? 'width' :
'height'), $file, VERBOSE_MISSING_ATTRIBUTES);
}
if (false === $this->cchunk["mediaobject"]["alt"]) {
- v('Missing alt attribute for ' . $file, VERBOSE_MISSING_ATTRIBUTES);
+ v('Missing alt attribute for %s', $file, VERBOSE_MISSING_ATTRIBUTES);
}
return '<img src="' . $newpath . '" ' . $alt . '
' . $dimensions . ' />';