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. /* Debug mode */
  15. public static bool debugMode = false;
  16.  
  17. public Log ()
  18. {
  19. }
  20.  
  21. public static void Error (string message)
  22. {
  23. // Facciamo capire che è un errore
  24. ConsoleColor initial = Console.ForegroundColor;
  25. Console.ForegroundColor = ConsoleColor.DarkRed;
  26. Console.Write (" ==> ");
  27. Console.WriteLine (message);
  28. Console.ForegroundColor = initial;
  29. }
  30.  
  31.  
  32. public static void Warning (string message)
  33. {
  34. // Facciamo capire che è un errore
  35. ConsoleColor initial = Console.ForegroundColor;
  36. Console.ForegroundColor = ConsoleColor.Cyan;
  37. Console.Write (" ==> ");
  38. Console.WriteLine (message);
  39. Console.ForegroundColor = initial;
  40. }
  41.  
  42.  
  43. public static void Info (string message)
  44. {
  45. // Facciamo capire che è un errore
  46. ConsoleColor initial = Console.ForegroundColor;
  47. Console.ForegroundColor = ConsoleColor.Green;
  48. Console.Write (" ==> ");
  49. Console.WriteLine (message);
  50. Console.ForegroundColor = initial;
  51. try {StatusBarUpdate(message);}
  52. catch (Exception e) { Log.Error ("Impossibile loggare sulla statusbar" + e.Message); }
  53. }
  54.  
  55. public static void Lock (string message)
  56. {
  57. ConsoleColor initial = Console.ForegroundColor;
  58. Console.Write (" ==> ");
  59. Console.ForegroundColor = ConsoleColor.DarkGray;
  60. Console.WriteLine (message);
  61. Console.ForegroundColor = initial;
  62. }
  63.  
  64. public static void Debug(string domain, string message) {
  65. if (!debugMode)
  66. return;
  67. ConsoleColor initial = Console.ForegroundColor;
  68. Console.Write (" ==> ");
  69. Console.ForegroundColor = ConsoleColor.Magenta;
  70. Console.WriteLine (message);
  71. Console.ForegroundColor = initial;
  72. }
  73. }
  74. }