diff --git a/crayon_langs.class.php b/crayon_langs.class.php index baf7ab6..13d1641 100644 --- a/crayon_langs.class.php +++ b/crayon_langs.class.php @@ -412,7 +412,7 @@ class CrayonLang extends CrayonVersionResource { if (array_key_exists($name, $this->elements) && $element === NULL) { return $this->elements[$name]; } else if (is_object($element)) { - if (@get_class($element) == CRAYON_ELEMENT_CLASS) { + if (get_class($element) == CRAYON_ELEMENT_CLASS) { $this->elements[$name] = $element; } } diff --git a/crayon_settings.class.php b/crayon_settings.class.php index 9c7acae..5b3b075 100644 --- a/crayon_settings.class.php +++ b/crayon_settings.class.php @@ -914,5 +914,3 @@ class CrayonSetting { } } - -?> \ No newline at end of file diff --git a/crayon_settings_wp.class.php b/crayon_settings_wp.class.php index 1762d92..7c927d5 100644 --- a/crayon_settings_wp.class.php +++ b/crayon_settings_wp.class.php @@ -744,7 +744,7 @@ class CrayonSettingsWP // General Fields ========================================================= public static function help() { - global $CRAYON_WEBSITE, $CRAYON_TWITTER, $CRAYON_GIT, $CRAYON_PLUGIN_WP, $CRAYON_DONATE; + global $CRAYON_WEBSITE, $CRAYON_TWITTER, $CRAYON_GIT; if (CrayonGlobalSettings::val(CrayonSettings::HIDE_HELP)) { return; } @@ -1244,7 +1244,7 @@ class Human { // About Fields =========================================================== public static function info() { - global $CRAYON_VERSION, $CRAYON_DATE, $CRAYON_AUTHOR, $CRAYON_WEBSITE, $CRAYON_TWITTER, $CRAYON_GIT, $CRAYON_PLUGIN_WP, $CRAYON_AUTHOR_SITE, $CRAYON_EMAIL, $CRAYON_DONATE; + global $CRAYON_VERSION, $CRAYON_DATE, $CRAYON_AUTHOR, $CRAYON_WEBSITE, $CRAYON_TWITTER, $CRAYON_GIT, $CRAYON_AUTHOR_SITE, $CRAYON_EMAIL; echo ''; $version = '' . crayon__('Version') . ': ' . $CRAYON_VERSION; $date = $CRAYON_DATE; @@ -1274,16 +1274,6 @@ class Human { Turkish (Hakan), Ukrainian (Michael Yunat)'; - $links = ' - - - - - -
- -
'; - echo ' @@ -1294,9 +1284,6 @@ class Human { - - -
' . $translators . '
' . $links . '
'; @@ -1309,11 +1296,9 @@ class Human { public static function plugin_row_meta($meta, $file) { - global $CRAYON_DONATE; if ($file == CrayonWP::basename()) { $meta[] = '' . crayon__('Settings') . ''; $meta[] = '' . crayon__('Theme Editor') . ''; - $meta[] = '' . crayon__('Donate') . ''; } return $meta; } diff --git a/global.php b/global.php index 3a2ad0e..ffa8d03 100644 --- a/global.php +++ b/global.php @@ -1,35 +1,33 @@ "); -define('CRAYON_NL', "\r\n"); -define('CRAYON_BL', CRAYON_BR . CRAYON_NL); -define('CRAYON_DASH', "=============================================================================="); -define('CRAYON_LINE', "------------------------------------------------------------------------------"); +const CRAYON_BR = "
"; +const CRAYON_NL = "\r\n"; +const CRAYON_BL = CRAYON_BR . CRAYON_NL; +const CRAYON_DASH = "=============================================================================="; +const CRAYON_LINE = "------------------------------------------------------------------------------"; // Load utilities @@ -246,5 +240,3 @@ function crayon_x($text, $context) { return $text; } } - -?> \ No newline at end of file