From c934ccc17c7d0cbb7c784a58cf5d7df568654c40 Mon Sep 17 00:00:00 2001
From: Aram Kocharyan
Date: Sun, 4 May 2014 11:19:30 +1000
Subject: [PATCH] Cleanup and more descriptive errors. Loaded settings when
needed in init_tags_regex.
---
crayon_fonts.class.php | 2 +-
crayon_langs.class.php | 2 +-
crayon_settings_wp.class.php | 145 ++++++++++++++++++-----------------
crayon_themes.class.php | 2 +-
crayon_wp.class.php | 1 +
5 files changed, 77 insertions(+), 75 deletions(-)
diff --git a/crayon_fonts.class.php b/crayon_fonts.class.php
index a1b9f2d2..4995d955 100644
--- a/crayon_fonts.class.php
+++ b/crayon_fonts.class.php
@@ -26,7 +26,7 @@ function __construct() {
CrayonLog::debug($this->user_directory(), "FONT USER DIR");
}
} else {
- CrayonLog::syslog("Upload directory is empty: " . $upload);
+ CrayonLog::syslog("Upload directory is empty: " . $upload . " cannot load fonts.");
}
CrayonLog::debug($this->directory());
CrayonLog::debug($this->user_directory());
diff --git a/crayon_langs.class.php b/crayon_langs.class.php
index 64bd24e7..651f55c8 100644
--- a/crayon_langs.class.php
+++ b/crayon_langs.class.php
@@ -40,7 +40,7 @@ public function __construct() {
CrayonLog::debug($this->user_directory(), "LANG USER DIR");
}
} else {
- CrayonLog::syslog("Upload directory is empty: " . $upload);
+ CrayonLog::syslog("Upload directory is empty: " . $upload . " cannot load languages.");
}
CrayonLog::debug($this->directory());
CrayonLog::debug($this->user_directory());
diff --git a/crayon_settings_wp.class.php b/crayon_settings_wp.class.php
index 39f27562..bcd19f30 100644
--- a/crayon_settings_wp.class.php
+++ b/crayon_settings_wp.class.php
@@ -1,13 +1,14 @@
-
+
-
+
-
-
-
-
- Crayon Syntax Highlighter
-
-
-
-
+
+ Crayon Syntax Highlighter
+
+
+
+
-
-
-
+ ?>"/>
+
+
+
+
+
+