Merge branch 'site-profile-fixes'

* site-profile-fixes:
  Use array_merge instead of array_replace (same effect, and array_merge works with PHP versions < 5.3)
  Update RTL stylesheet for neo.
This commit is contained in:
Zach Copley 2011-09-22 12:52:38 -07:00
commit 6f0cb0b23f
2 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ class PublicSite extends SiteProfileSettings
global $config;
return array(
// We only want to change these values, not replace entire 'site' array
'site' => array_replace(
'site' => array_merge(
$config['site'], array(
'inviteonly' => false,
'private' => false,
@ -137,7 +137,7 @@ class PrivateSite extends SiteProfileSettings
global $config;
return array(
// We only want to change these values, not replace entire 'site' array
'site' => array_replace(
'site' => array_merge(
$config['site'], array(
'inviteonly' => true,
'private' => true,
@ -200,7 +200,7 @@ class CommunitySite extends SiteProfileSettings
global $config;
return array(
// We only want to change these values, not replace entire 'site' array
'site' => array_replace(
'site' => array_merge(
$config['site'], array(
'private' => false,
'closed' => false
@ -245,7 +245,7 @@ class SingleuserSite extends SiteProfileSettings
return array(
'singleuser' => array('enabled' => true),
// We only want to change these values, not replace entire 'site' array
'site' => array_replace(
'site' => array_merge(
$config['site'], array(
'private' => false,
'closed' => true,

View File

@ -310,7 +310,7 @@ class StatusNet
{
global $config;
$settings = SiteProfile::getSettings($name);
$config = array_replace($config, $settings);
$config = array_merge($config, $settings);
}
protected function _sn_to_path($sn)