Alexander Nicolaysen Sørnes <alex@thehandofagony.com>

Remove the vendor from keywords hack. There are no longer any entries with this data in the application queues.
This commit is contained in:
Chris Morgan
2007-09-14 23:41:02 -04:00
parent 9ac39b46e6
commit e963bbdfda
2 changed files with 2 additions and 19 deletions

View File

@@ -882,10 +882,8 @@ class Application {
{
$oUser = new user($this->iSubmitterId);
$oVendor = new vendor($this->iVendorId);
if(!$oVendor->sName)
$sVendor = get_vendor_from_keywords($this->sKeywords);
else
$sVendor = $oVendor->objectMakeLink();
$sVendor = $oVendor->objectMakeLink();
$oTableRow = new TableRow();
$oTableRow->AddTextCell(print_date(mysqldatetime_to_unixtimestamp($this->sSubmitTime)));
@@ -1115,11 +1113,4 @@ class Application {
}
}
function get_vendor_from_keywords($sKeywords)
{
$aKeywords = explode(" *** ",$sKeywords);
$iLastElt = (sizeOf($aKeywords)-1);
return($aKeywords[$iLastElt]);
}
?>

View File

@@ -178,14 +178,6 @@ class application_queue
$this->oApp->outputEditor();
/* We need to accept vendors submitted using the old
keyword hack. This should be removed soon */
if(!$this->oVendor->sName && $this->oApp->iAppId)
{
$this->oVendor->sName = get_vendor_from_keywords(
$this->oApp->sKeywords);
}
/* Display the new vendor form for new applications or if we
are processing an application and the vendor is queued */
if(!$this->oApp->iAppId || $this->oVendor->sQueued != "false")