diff --git a/Source/MantisSourcePlugin.class.php b/Source/MantisSourcePlugin.class.php
index 918430f..df70189 100644
--- a/Source/MantisSourcePlugin.class.php
+++ b/Source/MantisSourcePlugin.class.php
@@ -6,7 +6,7 @@
/**
* Abstract class for simplifying creation of source control plugins.
* @author John Reese
- */
+ */
abstract class MantisSourcePlugin extends MantisPlugin {
public function hooks() {
return array(
@@ -97,6 +97,7 @@
/**
* Output form elements for configuration options.
+ * The first div should have class 'spacer'
*/
public function update_config_form() {}
diff --git a/Source/Source.API.php b/Source/Source.API.php
index 60c6f88..518e26c 100644
--- a/Source/Source.API.php
+++ b/Source/Source.API.php
@@ -1097,7 +1097,8 @@
trigger_error( ERROR_GENERIC, ERROR );
}
- return array_shift( self::from_result( $t_result ) );
+ $t_array = self::from_result( $t_result );
+ return array_shift( $t_array );
}
/**
@@ -1117,7 +1118,8 @@
trigger_error( ERROR_GENERIC, ERROR );
}
- return array_shift( self::from_result( $t_result ) );
+ $t_array = self::from_result( $t_result );
+ return array_shift( $t_array );
}
/**
diff --git a/Source/Source.FilterAPI.php b/Source/Source.FilterAPI.php
index 6c4d4ed..13f78e8 100644
--- a/Source/Source.FilterAPI.php
+++ b/Source/Source.FilterAPI.php
@@ -371,7 +371,7 @@
}
if ( $p_array ) {
- $t_input = gpc_get_string_array( $p_string, null );
+ $t_input = gpc_get_string_array( $p_string, array() );
$t_input_clean = array();
if ( is_array( $t_input ) && count( $t_input ) > 0 ) {
@@ -510,7 +510,7 @@
}
$t_changeset_table = plugin_table( 'changeset' );
- $t_user_table = db_get_table( 'mantis_user_table' );
+ $t_user_table = db_get_table( 'user' );
$t_query = "SELECT DISTINCT( author ) FROM $t_changeset_table ORDER BY author ASC";
$t_result = db_query_bound( $t_query );
@@ -535,7 +535,7 @@
}
$t_changeset_table = plugin_table( 'changeset' );
- $t_user_table = db_get_table( 'mantis_user_table' );
+ $t_user_table = db_get_table( 'user' );
$t_query = "SELECT DISTINCT( c.user_id ), u.username FROM $t_changeset_table AS c
JOIN $t_user_table AS u ON c.user_id=u.id ORDER BY u.username ASC";
diff --git a/Source/Source.ViewAPI.php b/Source/Source.ViewAPI.php
index ed73887..615c4d7 100644
--- a/Source/Source.ViewAPI.php
+++ b/Source/Source.ViewAPI.php
@@ -84,7 +84,7 @@
-
'
+ . ''
+ . ''
+ . ''
+ . ''
+ . '
';
}
/**
diff --git a/Source/classes/RelatedChangesetsColumn.class.php b/Source/classes/RelatedChangesetsColumn.class.php
index f3c0a83..a23683c 100644
--- a/Source/classes/RelatedChangesetsColumn.class.php
+++ b/Source/classes/RelatedChangesetsColumn.class.php
@@ -18,7 +18,7 @@
plugin_pop_current();
}
- public function cache( $p_bugs ) {
+ public function cache( array $p_bugs ) {
if ( count( $p_bugs ) < 1 ) {
return;
}
@@ -45,7 +45,7 @@
}
}
- public function display( $p_bug, $p_columns_target ) {
+ public function display( BugData $p_bug, $p_columns_target ) {
plugin_push_current( 'Source' );
if ( isset( $this->changeset_cache[ $p_bug->id ] ) ) {
diff --git a/Source/lang/strings_catalan.txt b/Source/lang/strings_catalan.txt
index 29ce72f..01120f2 100644
--- a/Source/lang/strings_catalan.txt
+++ b/Source/lang/strings_catalan.txt
@@ -113,9 +113,9 @@
$s_plugin_Source_mapping_update = 'Actualitzar mapejats';
$s_plugin_Source_mapping_strategy = 'Estratègia';
$s_plugin_Source_mapping_version = 'Versió';
-$s_plugin_Source_mapping_version_info = '
|
|