Skip to content

Commit b661922

Browse files
committed
sprintf
1 parent 428cf2f commit b661922

File tree

1 file changed

+2
-2
lines changed
  • app/code/core/Mage/Persistent/Model/Persistent

1 file changed

+2
-2
lines changed

app/code/core/Mage/Persistent/Model/Persistent/Config.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ public function fireOne($info, $instance = false)
120120
$object->$method($instance);
121121
} elseif (Mage::getIsDeveloperMode()) {
122122
if (!$object instanceof Mage_Core_Model_Abstract) {
123-
Mage::throwException('Model "' . $info['class'] . '" is not defined"');
123+
Mage::throwException(sprintf('Model "%s" is not defined"', $info['class']));
124124
} else {
125-
Mage::throwException('Method "' . $method . '" is not defined in "' . $object::class . '"');
125+
Mage::throwException(sprintf('Method "%s" is not defined in "%s"', $method, $object::class));
126126
}
127127
}
128128

0 commit comments

Comments
 (0)