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.  
  4. namespace Dizzy
  5. {
  6.  
  7.  
  8. public class Log
  9. {
  10.  
  11. public delegate void LogEvent (string message);
  12. public static event LogEvent StatusBarUpdate;
  13.  
  14. public Log ()
  15. {
  16. }
  17.  
  18. public static void Error (string message)
  19. {
  20. // Facciamo capire che è un errore
  21. ConsoleColor initial = Console.ForegroundColor;
  22. Console.ForegroundColor = ConsoleColor.DarkRed;
  23. Console.Write (" ==> ");
  24. Console.WriteLine (message);
  25. Console.ForegroundColor = initial;
  26. }
  27.  
  28.  
  29. public static void Warning (string message)
  30. {
  31. // Facciamo capire che è un errore
  32. ConsoleColor initial = Console.ForegroundColor;
  33. Console.ForegroundColor = ConsoleColor.Cyan;
  34. Console.Write (" ==> ");
  35. Console.WriteLine (message);
  36. Console.ForegroundColor = initial;
  37. }
  38.  
  39.  
  40. public static void Info (string message)
  41. {
  42. // Facciamo capire che è un errore
  43. ConsoleColor initial = Console.ForegroundColor;
  44. Console.ForegroundColor = ConsoleColor.Green;
  45. Console.Write (" ==> ");
  46. Console.WriteLine (message);
  47. Console.ForegroundColor = initial;
  48. try {StatusBarUpdate(message);}
  49. catch (Exception e) { Log.Error ("Impossibile loggare sulla statusbar" + e.Message); }
  50. }
  51.  
  52. public static void Lock (string message)
  53. {
  54. ConsoleColor initial = Console.ForegroundColor;
  55. Console.Write (" ==> ");
  56. Console.ForegroundColor = ConsoleColor.DarkGray;
  57. Console.WriteLine (message);
  58. Console.ForegroundColor = initial;
  59. }
  60. }
  61. }