Skip to content

Commit

Permalink
Another fix for the help search spidering in regards to link and bad …
Browse files Browse the repository at this point in the history
…'where' statement. [#431 state:resolved owner:dleffler milestone:2.0.3]
  • Loading branch information
dleffler committed Dec 17, 2011
1 parent e1d2de0 commit 99923c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/modules/help/controllers/helpController.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ function addContentToSearch() {

$count = 0;
$model = new $this->basemodel_name(null, false, false);
$content = $db->selectArrays($model->tablename,'help_version_id="'.$db->selectValue('help_version','version','is_current=1').'"');
$content = $db->selectArrays($model->tablename,'help_version_id="'.$db->selectValue('help_version','id','is_current=1').'"');
foreach ($content as $cnt) {
$origid = $cnt['id'];
unset($cnt['id']);
Expand All @@ -372,7 +372,7 @@ function addContentToSearch() {
$search_record = new search($cnt, false, false);
$search_record->original_id = $origid;
$search_record->posted = empty($cnt['created_at']) ? null : $cnt['created_at'];
$link = str_replace(URL_FULL,'', makeLink(array('controller'=>$this->baseclassname, 'action'=>'show', 'id'=>$origid, 'src'=>$src)));
$link = str_replace(URL_FULL,'', makeLink(array('controller'=>$this->baseclassname, 'action'=>'show', 'title'=>$cnt['sef_url'])));
// if (empty($search_record->title)) $search_record->title = 'Untitled';
$search_record->view_link = $link;
$search_record->ref_module = $this->classname;
Expand Down

0 comments on commit 99923c6

Please sign in to comment.