This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Sass::Script::Functions | |
def inline_svg_image(path, repl = nil) | |
real_path = File.join(Compass.configuration.images_path, path.value) | |
svg = data(real_path) | |
if repl && repl.respond_to?('to_h') | |
repl = repl.to_h | |
svg = svg.to_s | |
repl.each_pair do |k, v| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class error_show | |
* | |
* A custom error show method to log some useful additional information. | |
*/ | |
class error_show { | |
public static function show($config, $data) { | |
$additional = $data['error'] + ['cookie-headers' => $_COOKIE]; | |
unset($additional['exceptionMsg']); |
NewerOlder