Commit 9ef3128d75a319e6b3f4dfd611837353f3bb3ee2
1 parent
f410897a
KTS-3141
"Error in template syntax for search2 portlets" Fixed. Fixed all hyperlink urls mentioned in the ticket. Committed By: Jonathan Byrne Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8300 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
3 changed files
with
6 additions
and
3 deletions
plugins/search2/IndexingStatusDashlet.php
| ... | ... | @@ -105,11 +105,14 @@ class IndexingStatusDashlet extends KTBaseDashlet |
| 105 | 105 | $oTemplating =& KTTemplating::getSingleton(); |
| 106 | 106 | $oTemplate = $oTemplating->loadTemplate('ktcore/search2/indexing_status'); |
| 107 | 107 | |
| 108 | + $url = KTUtil::kt_url(); | |
| 109 | + | |
| 108 | 110 | $aTemplateData = array( |
| 109 | 111 | 'context' => $this, |
| 110 | 112 | 'indexerName' => $this->indexerName, |
| 111 | 113 | 'indexerDiagnosis' => $this->indexerDiagnosis, |
| 112 | - 'extractorDiagnosis' => $this->extractorDiagnosis | |
| 114 | + 'extractorDiagnosis' => $this->extractorDiagnosis, | |
| 115 | + 'rootUrl' => $url | |
| 113 | 116 | ); |
| 114 | 117 | |
| 115 | 118 | return $oTemplate->render($aTemplateData); | ... | ... |
templates/ktcore/search2/indexing_status.smarty
| ... | ... | @@ -36,5 +36,5 @@ |
| 36 | 36 | <B>{i18n}Note:{/i18n}</b> {i18n}Indexing will not continue until all issues have been resolved.{/i18n} |
| 37 | 37 | <table width="100%"> |
| 38 | 38 | <tr> |
| 39 | -<td align=right><a href="/search2.php?action=refreshDashboardStatus">Refresh</a> | |
| 39 | +<td align=right><a href="{$rootUrl}/search2.php?action=refreshDashboardStatus">Refresh</a> | |
| 40 | 40 | </table> | ... | ... |
templates/ktcore/search2/lucene_statistics.smarty
| ... | ... | @@ -79,7 +79,7 @@ toggle.style.display = 'none'; |
| 79 | 79 | {/if} |
| 80 | 80 | </table> |
| 81 | 81 | <table width="100%"> |
| 82 | -<tr><td colspan=2 align=right><a href="/search2.php?action=refreshLuceneStats" align=right>{i18n}Refresh{/i18n}</a></tr> | |
| 82 | +<tr><td colspan=2 align=right><a href="{$rootUrl}/search2.php?action=refreshLuceneStats" align=right>{i18n}Refresh{/i18n}</a></tr> | |
| 83 | 83 | </table> |
| 84 | 84 | |
| 85 | 85 | ... | ... |