juliopontes / joomla-override

Plugin to Override Joomla Extensions (Modules and Components)
19 stars 17 forks source link

[FIX] use token parser instead of regular expression #1

Closed phproberto closed 11 years ago

phproberto commented 11 years ago

I wanted to test thhe plugin so I tried to make an override of:

administrator/code/com_k2/models/item.php

The plugin wasn't able to find the original class with regular expressions. Best tool to parse PHP source files is:

http://www.php.net/manual/en/function.token-get-all.php

I replace the regular expression with token_get_all().

juliopontes commented 11 years ago

Thanks @phproberto