limit the description of an appversion to it's first sentence instead of a fixed number of letters
This commit is contained in:
@@ -58,13 +58,11 @@ function display_bundle($appId)
|
|||||||
$bgcolor = ($c % 2 == 0) ? "color0" : "color1";
|
$bgcolor = ($c % 2 == 0) ? "color0" : "color1";
|
||||||
|
|
||||||
//format desc
|
//format desc
|
||||||
$desc = substr(stripslashes($ob->description),0,50);
|
$aDesc = explode("\n",$oApp->data->description,2);
|
||||||
if(strlen($desc) == 50) $desc .= " ...";
|
|
||||||
|
|
||||||
//display row
|
//display row
|
||||||
echo "<tr class=$bgcolor>\n";
|
echo "<tr class=$bgcolor>\n";
|
||||||
echo " <td><a href='appview.php?appId=$ob->appId'>".stripslashes($ob->appName)."</a></td>\n";
|
echo " <td><a href='appview.php?appId=$ob->appId'>".stripslashes($ob->appName)."</a></td>\n";
|
||||||
echo " <td>$desc </td>\n";
|
echo " <td>".$aDesc[0]."</td>\n";
|
||||||
echo "</tr>\n\n";
|
echo "</tr>\n\n";
|
||||||
|
|
||||||
$c++;
|
$c++;
|
||||||
|
|||||||
Reference in New Issue
Block a user