Author: david
Date: Mon Oct 5 13:00:11 2009
New Revision: 3664
Log:
Clean up variables that were required when using term/listTaxonomySuccess.php
template.
Modified:
trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php
Modified: trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php Mon Oct
5 12:05:24 2009 (r3663)
+++ trunk/apps/qubit/modules/term/actions/autocompleteAction.class.php Mon Oct
5 13:00:11 2009 (r3664)
@@ -24,11 +24,11 @@
sfContext::getInstance()->getConfiguration()->loadHelpers(array('Tag','Url'));
$this->taxonomy = QubitTaxonomy::getById($request->taxonomyId);
- if (!isset($this->taxonomy))
+ if (null === $this->taxonomy)
{
- $this->forward404();
+
+ return $this->renderText(null);
}
- $this->editCredentials = $this->getUser()->hasCredential('editor');
$criteria = new Criteria;
$criteria->add(QubitTermI18n::NAME, $request->query.'%', Criteria::LIKE);
@@ -42,8 +42,6 @@
$this->pager->setPage($request->page);
$this->pager->init();
- $this->terms = $this->pager->getResults();
-
$tableHtml = <<<EOL
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---