public function XMLSitemapWriter::openUri in XML sitemap 6.2
Same name and namespace in other branches
- 7.2 xmlsitemap.xmlsitemap.inc \XMLSitemapWriter::openUri()
1 call to XMLSitemapWriter::openUri()
- XMLSitemapWriter::__construct in ./
xmlsitemap.xmlsitemap.inc - Constructor.
File
- ./
xmlsitemap.xmlsitemap.inc, line 38 - XML sitemap integration functions for xmlsitemap.module.
Class
- XMLSitemapWriter
- Extended class for writing XML sitemap files.
Code
public function openUri($uri) {
if ($realpath = realpath($uri)) {
// Convert to a real path if possible. Sometimes this function returns
// a FALSE value, so use the original value when that happens.
$uri = $realpath;
}
$return = parent::openUri($uri);
if (!$return) {
throw new XMLSitemapGenerationException(t('Could not open file @file for writing.', array(
'@file' => $uri,
)));
}
return $return;
}