Permalink
Browse files

There is no sprint function. I substituted it with sprintf.

  • Loading branch information...
1 parent 3beb0dd commit c6499038ce278d5de9d03e8f608f801a69d37ba2 @simonharrer simonharrer committed Apr 25, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 libraries/joomla/form/form.php
View
12 libraries/joomla/form/form.php
@@ -308,7 +308,7 @@ public function getFieldAttribute($name, $attribute, $default = null, $group = n
// Make sure there is a valid JForm XML document.
if (!($this->xml instanceof SimpleXMLElement))
{
- throw new UnexpectedValueException(sprint('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
+ throw new UnexpectedValueException(sprintf('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
}
// Find the form field element from the definition.
@@ -791,7 +791,7 @@ public function removeField($name, $group = null)
// Make sure there is a valid JForm XML document.
if (!($this->xml instanceof SimpleXMLElement))
{
- throw new UnexpectedValueException(sprint('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
+ throw new UnexpectedValueException(sprintf('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
}
// Find the form field element from the definition.
@@ -822,7 +822,7 @@ public function removeGroup($group)
// Make sure there is a valid JForm XML document.
if (!($this->xml instanceof SimpleXMLElement))
{
- throw new UnexpectedValueException(sprint('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
+ throw new UnexpectedValueException(sprintf('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
}
// Get the fields elements for a given group.
@@ -878,7 +878,7 @@ public function setField(SimpleXMLElement $element, $group = null, $replace = tr
// Make sure there is a valid JForm XML document.
if (!($this->xml instanceof SimpleXMLElement))
{
- throw new UnexpectedValueException(sprint('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
+ throw new UnexpectedValueException(sprintf('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
}
// Find the form field element from the definition.
@@ -940,7 +940,7 @@ public function setFieldAttribute($name, $attribute, $value, $group = null)
// Make sure there is a valid JForm XML document.
if (!($this->xml instanceof SimpleXMLElement))
{
- throw new UnexpectedValueException(sprint('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
+ throw new UnexpectedValueException(sprintf('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
}
// Find the form field element from the definition.
@@ -982,7 +982,7 @@ public function setFields(&$elements, $group = null, $replace = true)
// Make sure there is a valid JForm XML document.
if (!($this->xml instanceof SimpleXMLElement))
{
- throw new UnexpectedValueException(sprint('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
+ throw new UnexpectedValueException(sprintf('%s::getFieldAttribute `xml` is not an instance of SimpleXMLElement', get_class($this)));
}
// Make sure the elements to set are valid.

0 comments on commit c649903

Please sign in to comment.