diff --git a/code/controllers/SilverStripeNavigator.php b/code/controllers/SilverStripeNavigator.php index 5e1e089c..c3af71e5 100644 --- a/code/controllers/SilverStripeNavigator.php +++ b/code/controllers/SilverStripeNavigator.php @@ -25,7 +25,10 @@ class SilverStripeNavigator extends ViewableData { */ public function __construct($record) { if(!in_array('CMSPreviewable', class_implements($record))) { - throw new InvalidArgumentException('SilverStripeNavigator: Record of type %s doesn\'t implement CMSPreviewable', get_class($record)); + throw new InvalidArgumentException(sprintf( + 'SilverStripeNavigator: Record of type %s doesn\'t implement CMSPreviewable', + get_class($record) + )); } $this->record = $record;