httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbo...@apache.org
Subject svn commit: r1039597 - /httpd/httpd/trunk/docs/review_translations.pl
Date Sat, 27 Nov 2010 02:27:18 GMT
Author: rbowen
Date: Sat Nov 27 02:27:17 2010
New Revision: 1039597

URL: http://svn.apache.org/viewvc?rev=1039597&view=rev
Log:
Bugfix: If there's only one valid context, this is a scalar, not an arrayref.

Modified:
    httpd/httpd/trunk/docs/review_translations.pl

Modified: httpd/httpd/trunk/docs/review_translations.pl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/review_translations.pl?rev=1039597&r1=1039596&r2=1039597&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/review_translations.pl (original)
+++ httpd/httpd/trunk/docs/review_translations.pl Sat Nov 27 02:27:17 2010
@@ -69,6 +69,13 @@ sub directive_doc {
         $eng_xml->{directivesynopsis}->{$d}->{description} .
         "</description>\n";
     print "<contextlist>";
+
+    # If there's only one context, this is a scalar, not an arrayref.
+    if ( !ref( $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context})
) {
+        $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context} 
+            = [ $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context}
]
+    }
+
     foreach my $c ( @{ $eng_xml->{directivesynopsis}->{$d}->{contextlist}->{context}
} ) {
         print "<context>".$c."</context>";
     }



Mime
View raw message