diff --git a/_config.php b/_config.php index 69b95fb55..25f2259a2 100644 --- a/_config.php +++ b/_config.php @@ -31,8 +31,11 @@ Object::useCustomClass('Datetime', 'SS_Datetime', true); */ define('MCE_ROOT', FRAMEWORK_DIR . '/thirdparty/tinymce/'); -ShortcodeParser::get('default')->register('file_link', array('File', 'link_shortcode_handler')); -ShortcodeParser::get('default')->register('embed', array('Oembed', 'handle_shortcode')); +ShortcodeParser::get('default') + ->register('file_link', array('File', 'handle_shortcode')) + ->register('embed', array('Oembed', 'handle_shortcode')); +// @todo +// ->register('dbfile_link', array('DBFile', 'handle_shortcode')) // Zend_Cache temp directory setting $_ENV['TMPDIR'] = TEMP_FOLDER; // for *nix diff --git a/_config/asset.yml b/_config/asset.yml index e51c01b69..a71ee605b 100644 --- a/_config/asset.yml +++ b/_config/asset.yml @@ -23,3 +23,5 @@ Injector: AssetNameGenerator: class: SilverStripe\Filesystem\Storage\DefaultAssetNameGenerator type: prototype + # Image mechanism + Image_Backend: GDBackend diff --git a/dev/Backtrace.php b/dev/Backtrace.php index 2397b5e33..6834d5c4d 100644 --- a/dev/Backtrace.php +++ b/dev/Backtrace.php @@ -161,12 +161,15 @@ class SS_Backtrace { /** * Render a backtrace array into an appropriate plain-text or HTML string. * - * @param string $bt The trace array, as returned by debug_backtrace() or Exception::getTrace() + * @param array $bt The trace array, as returned by debug_backtrace() or Exception::getTrace() * @param boolean $plainText Set to false for HTML output, or true for plain-text output * @param array List of functions that should be ignored. If not set, a default is provided * @return string The rendered backtrace */ public static function get_rendered_backtrace($bt, $plainText = false, $ignoredFunctions = null) { + if(empty($bt)) { + return ''; + } $bt = self::filter_backtrace($bt, $ignoredFunctions); $result = ($plainText) ? '' : '