viewgit/index.php:465 Only variables should be passed by reference [2048]

viewgit/index.php:466 Non-static method GeSHi::get_language_name_from_extension() should not be called statically [2048]

  1.  
  2. using System;
  3. using System.Data.SQLite;
  4. using System.Collections;
  5.  
  6. namespace Dizzy
  7. {
  8.  
  9.  
  10. public class FileList
  11. {
  12.  
  13. SQLiteConnection connection;
  14.  
  15. public FileList() {
  16. string connectionString = "Data Source=" + GlobalConfig.ListFileName () + ";Version=3";
  17. this.connection = new SQLiteConnection(connectionString);
  18. }
  19.  
  20. public ArrayList Search(string keyword, string type, string user) {
  21.  
  22. this.connection.Open ();
  23. ArrayList matches = new ArrayList ();
  24.  
  25. // Eseguiamo la query
  26. SQLiteCommand sqlCmd = this.connection.CreateCommand ();
  27. sqlCmd.CommandText = "SELECT * from files WHERE name LIKE '%" + keyword + "%'";
  28. SQLiteDataReader reader = sqlCmd.ExecuteReader ();
  29.  
  30. File tmp;
  31. while(reader.Read())
  32. {
  33. tmp = new File(reader.GetString(0), // Path
  34. reader.GetString(2), // User
  35. reader.GetString(1), // Name
  36. reader.GetInt32(3)); // Size
  37.  
  38. if ( (type == "Qualsiasi" || tmp.type.Name() == type) &&
  39. (user == "" || user == tmp.user) )
  40. {
  41. matches.Add (tmp);
  42. }
  43. }
  44.  
  45. this.connection.Close ();
  46. return matches;
  47. }
  48. }
  49. }