svn: /pear/packages/Bugtracker/trunk/site/ bug.php

From: Date: Thu, 13 Aug 2009 13:17:20 +0000
Subject: svn: /pear/packages/Bugtracker/trunk/site/ bug.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-57112@lists.php.net to get a copy of this message
jani Thu, 13 Aug 2009 13:17:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=287227 Log: - Cleanup a bit Changed paths: U pear/packages/Bugtracker/trunk/site/bug.php Modified: pear/packages/Bugtracker/trunk/site/bug.php =================================================================== --- pear/packages/Bugtracker/trunk/site/bug.php 2009-08-13 13:16:36 UTC (rev 287226) +++ pear/packages/Bugtracker/trunk/site/bug.php 2009-08-13 13:17:20 UTC (rev 287227) @@ -559,17 +559,14 @@ </table> </div> -<?php if ($bug_id != 'PREVIEW') { ?> - -<div class="controls"> -<?php -control(0, 'View'); -control(3, 'Add Comment'); -control(1, 'Developer'); -control(2, 'Edit'); +<?php if ($bug_id !== 'PREVIEW') { + echo '<div class="controls">', "\n", + control(0, 'View'), + control(3, 'Add Comment'), + control(1, 'Developer'), + control(2, 'Edit'), + '</div>', "\n"; ?> -</div> - <div class="clear"></div> <?php if (!$edit && canvote($thanks, $bug['status'])) { ?> @@ -1029,14 +1026,13 @@ { global $bug_id, $edit; - echo "<span id='control_{$num}' class='control"; + $str = "<span id='control_{$num}' class='control"; if ($edit == $num) { - echo ' active\'>'; - echo $desc; + $str .= " active'>{$desc}"; } else { - echo "'><a href='bug.php?id={$bug_id}" , (($num) ? "&amp;edit={$num}" : '') , "'>{$desc}</a>"; + $str .= "'><a href='bug.php?id={$bug_id}" . (($num) ? "&amp;edit={$num}" : '') . "'>{$desc}</a>"; } - echo "</span>\n"; + return "{$str}</span>\n"; } function canvote($thanks, $status)

« previous php.pear.cvs (#57112) next »