Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
From cb3c65e7860540909576b9de27e3587099c1ea41 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher <unki@netshadow.at> Date: Tue, 30 Dec 2008 11:26:20 +0100 Subject: [PATCH] check if facts values are stored as 'values:' Signed-off-by: Andreas Unterkircher <unki@netshadow.at> --- incl/Host.class.php | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/incl/Host.class.php b/incl/Host.class.php index d4b81c3..3e944cc 100644 --- a/incl/Host.class.php +++ b/incl/Host.class.php @@ -68,6 +68,10 @@ class PuppetHost { $this->facts = $facts["values"]; ksort($this->facts); } + elseif(isset($facts["values:"])) { + $this->facts = $facts["values:"]; + ksort($this->facts); + } else { $this->facts = Array(); } -- 1.5.5
This paste will be private.
From the Design Piracy series on my blog: