[Pyukiwiki-cvs 0011647] CVS update: PyukiWiki-Devel-UTF8/lib

Back to archive index

PyukiWiki CVS Commit pyuki****@lists*****
2012年 6月 21日 (木) 18:43:39 JST


Index: PyukiWiki-Devel-UTF8/lib/ogp.inc.pl
diff -u PyukiWiki-Devel-UTF8/lib/ogp.inc.pl:1.19 PyukiWiki-Devel-UTF8/lib/ogp.inc.pl:1.20
--- PyukiWiki-Devel-UTF8/lib/ogp.inc.pl:1.19	Sun Jun 17 17:54:29 2012
+++ PyukiWiki-Devel-UTF8/lib/ogp.inc.pl	Thu Jun 21 18:43:38 2012
@@ -1,6 +1,6 @@
 ######################################################################
 # ogp.inc.pl - This is PyukiWiki, yet another Wiki clone.
-# $Id: ogp.inc.pl,v 1.19 2012/06/17 08:54:29 papu Exp $
+# $Id: ogp.inc.pl,v 1.20 2012/06/21 09:43:38 papu Exp $
 #
 # "PyukiWiki" ver 0.2.1-alpha1-dev3 $$
 # Author: Nanami http://nanakochi.daiba.cx/
@@ -23,6 +23,9 @@
 # http://webdrawer.net/html/facebookogp.html
 #
 
+$ogp::forceallns=0								# xmlnsを全て強制的に出力
+	if($ogp::forceallns eq '');
+
 $ogp::meta{title}=""							# タイトル
 	if($ogp::meta{title} eq '');
 $ogp::meta{type}="website"						# 説明参照
@@ -277,8 +280,12 @@
 		}
 	}
 	my $xmlns;
-	foreach(keys %xmlns) {
-		$xmlns.=" $xmlns{$_}";
+	if($ogp::forceallns) {
+		$xmlns="$ogp::xmlns{og} $ogp::xmlns{fb} $ogp::xmlns{mixi}";
+	} else {
+		foreach(keys %xmlns) {
+			$xmlns.=" $xmlns{$_}";
+		}
 	}
 	&init_dtd($xmlns);
 	return $header;



Pyukiwiki-cvs メーリングリストの案内
Back to archive index