cvs: pearweb /public_html package-info.php

From: Date: Mon, 01 May 2006 16:33:49 +0000
Subject: cvs: pearweb /public_html package-info.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4747@lists.php.net to get a copy of this message
pajoye Mon May 1 16:33:49 2006 UTC Modified files: /pearweb/public_html package-info.php Log: - #7533, typo: "superceded" should be "superseded" - rename new_package to superseded_by_new_package, less confusing http://cvs.php.net/viewcvs.cgi/pearweb/public_html/package-info.php?r1=1.116&r2=1.117&diff_format=u Index: pearweb/public_html/package-info.php diff -u pearweb/public_html/package-info.php:1.116 pearweb/public_html/package-info.php:1.117 --- pearweb/public_html/package-info.php:1.116 Tue Mar 14 01:17:50 2006 +++ pearweb/public_html/package-info.php Mon May 1 16:33:49 2006 @@ -16,7 +16,7 @@ | Authors: Martin Jansen <mj@php.net> | | Tomas V.V.Cox <cox@idecnet.com> | +----------------------------------------------------------------------+ - $Id: package-info.php,v 1.116 2006/03/14 01:17:50 toby Exp $ + $Id: package-info.php,v 1.117 2006/05/01 16:33:49 pajoye Exp $ */ @@ -130,7 +130,7 @@ $cvs_link = $pkg['cvs_link']; $doc_link = $pkg['doc_link']; $unmaintained = ($pkg['unmaintained']) ? 'Y' : 'N'; -$new_package = htmlspecialchars($pkg['new_package']); +$superseded_by_new_package = htmlspecialchars($pkg['new_package']); // Maintainer information $maintainers = maintainer::get($pacid); @@ -198,20 +198,21 @@ /* UNMAINTAINED OR SUPERCEEDED PACKAGES WARNING */ $dec_messages = array( - 'abandoned' => 'This package is not maintained anymore and has been superceded by <a href="/package/{{PACKAGE_NAME}}">{{PACKAGE_NAME}}</a>.', - 'superceded' => 'This package been superceded by <a href="/package/{{PACKAGE_NAME}}">{{PACKAGE_NAME}}</a> but is still maintained for bugs and security fixes', + 'abandoned' => 'This package is not maintained anymore and has been superseded by <a href="/package/{{PACKAGE_NAME}}">{{PACKAGE_NAME}}</a>.', + 'superseded' => 'This package been superseded by <a href="/package/{{PACKAGE_NAME}}">{{PACKAGE_NAME}}</a> but is still maintained for bugs and security fixes', 'unmaintained' => 'This package is not maintained, if you would like to take over please go to <a href="http://pear.php.net/manual/en/newmaint.takingover.php">this page</a>' ); $dec_table = array( - 'abandoned' => array('superceded' => 'Y', 'unmaintained' => 'Y'), - 'superceded' => array('superceded' => 'Y', 'unmaintained' => 'N'), - 'unmaintained' => array('superceded' => 'N', 'unmaintained' => 'Y'), + 'abandoned' => array('superseded' => 'Y', 'unmaintained' => 'Y'), + 'superseded' => array('superseded' => 'Y', 'unmaintained' => 'N'), + 'unmaintained' => array('superseded' => 'N', 'unmaintained' => 'Y'), ); - $superceded = 'N'; - if ($new_package != '') { - $superceded = 'Y'; + if ($superseded_by_new_package != '') { + $superseded = 'Y'; + } else { + $superseded = 'N'; } $apply_rule = null; @@ -230,7 +231,7 @@ if (!is_null($apply_rule) && isset($dec_messages[$apply_rule])) { $str = '<div class="warnings">'; - $str .= str_replace('{{PACKAGE_NAME}}', $new_package, $dec_messages[$apply_rule]); + $str .= str_replace('{{PACKAGE_NAME}}', $superseded_by_new_package, $dec_messages[$apply_rule]); $str .= '</div>'; echo $str; }

« previous php.pear.core (#4747) next »