mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
Merge pull request #1127 from halkyon/sprintf_missing
BUG sprintf missing on exception in SilverStripeNavigator
This commit is contained in:
commit
93d09d4dbb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user