From: <lph...@us...> - 2008-08-07 22:06:38
|
Revision: 14122 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14122&view=rev Author: lphuberdeau Date: 2008-08-07 22:06:45 +0000 (Thu, 07 Aug 2008) Log Message: ----------- [FIX] Replace values in preferences as well Modified Paths: -------------- trunk/lib/profilelib/installlib.php Modified: trunk/lib/profilelib/installlib.php =================================================================== --- trunk/lib/profilelib/installlib.php 2008-08-07 21:08:53 UTC (rev 14121) +++ trunk/lib/profilelib/installlib.php 2008-08-07 22:06:45 UTC (rev 14122) @@ -169,12 +169,14 @@ $this->installed[$profile->url] = $profile; - foreach( $profile->getPreferences() as $pref => $value ) - $tikilib->set_preference( $pref, $value ); - foreach( $profile->getObjects() as $object ) $this->getInstallHandler( $object )->install(); + $preferences = $profile->getPreferences(); + $profile->replaceReferences( $preferences ); + foreach( $preferences as $pref => $value ) + $tikilib->set_preference( $pref, $value ); + $permissions = $profile->getPermissions(); $profile->replaceReferences( $permissions ); foreach( $permissions as $groupName => $info ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |