Skip to content

Commit 7e3e353

Browse files
committed
Fix missing language string error
When viewing an issue's Related Changesets (in view.php), an error message 'String "plugin_SourceIntegration_affected_issues" not found.' is displayed. This is because the plugin context in View Issue page is not 'Source', but 'SourceIntegration', so the plugin_lang_get() call needs to reference the base plugin. Regression introduced by 5aec110 (#224) Fixes #231
1 parent 39cdcb9 commit 7e3e353

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/Source.ViewAPI.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function Source_View_Changesets( $p_changesets, $p_repos=null, $p_show_repos=tru
8686

8787
if( $t_bugs ) {
8888
echo '<span class="bold">',
89-
plugin_lang_get( 'affected_issues' ),
89+
plugin_lang_get( 'affected_issues', 'Source' ),
9090
'</span><br>';
9191
echo '<span>', implode( ', ', $t_bugs ), '</span>';
9292
} else {
@@ -207,7 +207,7 @@ function Source_View_Pagination( $p_link, $p_current, $p_count, $p_perpage = 25
207207
return '...';
208208
} elseif( $p_page == $p_current ) {
209209
return "<strong>$p_page</strong>";
210-
} else {
210+
} else {
211211
$page_button = '<a class="btn btn-xs btn-primary btn-white btn-round" href="'. $p_link . $p_page .'">'.$p_text.'</a>';
212212
return $page_button;
213213
}
@@ -234,7 +234,7 @@ function Source_View_Pagination( $p_link, $p_current, $p_count, $p_perpage = 25
234234
$t_page_set = range( 1, $t_pages );
235235
}
236236

237-
if( $p_current > 1 ) {
237+
if( $p_current > 1 ) {
238238
echo '&nbsp;', $t_page_link( 1, lang_get( 'first' ) );
239239
echo '&nbsp;&nbsp;', $t_page_link( $p_current - 1, lang_get( 'prev' ) );
240240
echo '&nbsp;&nbsp;';

0 commit comments

Comments
 (0)