szajbus / uploadpack

Easy way to handle file uploads in CakePHP.
MIT License
101 stars 35 forks source link

undefined function 'low()' #11

Closed pete-a closed 12 years ago

pete-a commented 12 years ago

Was receiving an undefined function error for line 237 of UploadBehavior.php: https://github.com/szajbus/uploadpack/blob/master/Model/Behavior/UploadBehavior.php#L237

is this meant to be strtolower()? I changed line 237 to strtolower and it resolved my issue

szajbus commented 12 years ago

If I remember correctly, low() was a shortcut to strtolower() at some point in CakePHP. Maybe they removed it. Can you file a pull request?

pete-a commented 12 years ago

Yes, it appears low() was removed in 2.0: http://book.cakephp.org/1.3/view/1134/low I'll file a pull request shortly