]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/sitemap.php
Merge branch '0.8.x' of git://gitorious.org/laconica/dev into 0.8.x
[quix0rs-gnu-social.git] / scripts / sitemap.php
old mode 100644 (file)
new mode 100755 (executable)
index 504783e..39eb859
@@ -61,7 +61,8 @@ function standard_map()
                                     )
                               );
 
-    $docs = array('about', 'faq', 'contact', 'im', 'openid', 'openmublog', 'privacy', 'source');
+    $docs = array('about', 'faq', 'contact', 'im', 'openid', 'openmublog', 
+        'privacy', 'source', 'badge');
 
     foreach($docs as $title) {
         $standard_map_urls .= url(
@@ -331,7 +332,7 @@ function parse_args()
     $output_url = $args[u];
 
     if (file_exists($output_dir)) {
-        if (is_writable($output_dir) === FALSE) {
+        if (is_writable($output_dir) === false) {
             error("$output_dir is not writable.");
         }
     }     else {
@@ -366,11 +367,11 @@ function write_file($path, $data)
         error('No data specified for writing.');
     }
 
-    if (($fh_out = fopen($path,'w')) === FALSE) {
+    if (($fh_out = fopen($path,'w')) === false) {
         error("couldn't open $path for writing.");
     }
 
-    if (fwrite($fh_out, $data) === FALSE) {
+    if (fwrite($fh_out, $data) === false) {
         error("couldn't write to $path.");
     }
 }