Changeset 54
- Timestamp:
- 02/11/08 23:35:56 (10 months ago)
- Files:
-
- trunk/Phergie/Event/Handler/Math.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Phergie/Event/Handler/Math.php
r15 r54 33 33 if (substr($event->getArgument(1), 0, 5) === 'math ' || substr($event->getArgument(1), 0, 5) === 'calc ') { 34 34 // Get equation 35 $equation = s trtolower(substr($event->getArgument(1), 5));35 $equation = substr($event->getArgument(1), 5); 36 36 // Replace constants 37 $equation = str_ replace(array('pi()', 'pi', 'chucknorris', 'inf', 'e'), array('M_PI', 'M_PI', 1e10000, 'INF', 'M_E'), $equation);37 $equation = str_ireplace(array('pi', 'M_PI()', 'chucknorris', 'inf', ' e '), array('M_PI', 'M_PI', 1e10000, 'INF', ' M_E '), $equation); 38 38 $equationSrc = $equation; 39 39