From: <gem...@li...> - 2012-02-14 14:03:44
|
Revision: 472 http://gemstracker.svn.sourceforge.net/gemstracker/?rev=472&view=rev Author: mennodekker Date: 2012-02-14 14:03:35 +0000 (Tue, 14 Feb 2012) Log Message: ----------- Hide 'salt' from project information overview Modified Paths: -------------- branches/1.5.x/library/classes/Gems/Default/ProjectInformationAction.php Modified: branches/1.5.x/library/classes/Gems/Default/ProjectInformationAction.php =================================================================== --- branches/1.5.x/library/classes/Gems/Default/ProjectInformationAction.php 2012-02-14 10:34:21 UTC (rev 471) +++ branches/1.5.x/library/classes/Gems/Default/ProjectInformationAction.php 2012-02-14 14:03:35 UTC (rev 472) @@ -202,8 +202,12 @@ public function projectAction() { - $project = $this->project; + //Clone the object, we don't want to modify the original + $project = clone $this->escort->project; + + //Now remove some keys want want to keep for ourselves unset($project['admin']); + unset($project['salt']); $this->html->h2($this->_('Project settings')); $this->_showTable(GEMS_PROJECT_NAME . 'Project.ini', $project); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |