[4631] trunk/htdocs/system/classes/remoterequest.php: Partial proxy configuration supplied via config. php should now work without errors

0 views
Skip to first unread message

svn-N...@habariproject.org

unread,
Nov 27, 2010, 2:56:58 AM11/27/10
to habar...@googlegroups.com
Revision
4631
Author
lildude
Date
2010-11-27 07:56:57 +0000 (Sat, 27 Nov 2010)

Log Message

Partial proxy configuration supplied via config.php should now work without errors

Modified Paths

Diff

Modified: trunk/htdocs/system/classes/remoterequest.php (4630 => 4631)


--- trunk/htdocs/system/classes/remoterequest.php	2010-11-27 07:26:36 UTC (rev 4630)
+++ trunk/htdocs/system/classes/remoterequest.php	2010-11-27 07:56:57 UTC (rev 4631)
@@ -86,7 +86,7 @@
 		if ( isset( $proxy->server ) ) {
 			$this->set_config( array( 'proxy' => (array)$proxy ) );
 		}
-		
+
 		// populate the default proxy exceptions list, since we can't up there
 		$this->config['proxy']['exceptions'] = array_merge( $this->config['proxy']['exceptions'], array(
 			'localhost',
@@ -139,9 +139,15 @@
                 $this->set_config( $name, $value );
             }
 
-        } else {
-        	$this->config[ $config ] = $value;
         }
+		else {
+			if ( is_array( $value ) ) {
+				$this->config[ $config ] = array_merge( $this->config[ $config ], $value );
+			}
+			else {
+				$this->config[ $config ] = $value;
+			}
+        }
     }
 	
 	/**
Reply all
Reply to author
Forward
0 new messages