hack for cgbeta
authorJean-Guilhem Rouel <jean-gui@w3.org>
Fri, 18 Apr 2014 16:02:43 +0200
changeset 328 b96853ef1ced
parent 327 f3d94f45545b
child 329 b1eee6b311f2
hack for cgbeta
vendor/w3/lib/W3/ProposedGroup.php
--- a/vendor/w3/lib/W3/ProposedGroup.php	Fri Apr 18 15:15:33 2014 +0200
+++ b/vendor/w3/lib/W3/ProposedGroup.php	Fri Apr 18 16:02:43 2014 +0200
@@ -229,7 +229,16 @@
 		if($blogShortname) {
 			$blogShortname = $blogShortname . '/';
 		}
-		$client = new IXR_ClientSSL('www.w3.org', '/community/'.$blogShortname.'xmlrpc.php');
+    switch(gethostname()) {
+    case "albireo":
+    case "cgbeta":
+        $server = "cgbeta.w3.org";
+        break;
+    default:
+        $server = "www.w3.org";
+        break;
+    }
+    $client = new IXR_ClientSSL($server, '/community/' . $blogShortname . 'xmlrpc.php');
 		
 		$content['title'] = $title;
 		$content['categories'] = array('Announcements');