Skip to content

Commit

Permalink
replace ereg with preg_match
Browse files Browse the repository at this point in the history
ereg is deprecate in PHP5.3 and will be removed in PHP6
  • Loading branch information
Marcus Lunzenauer committed Feb 11, 2010
1 parent 4c74303 commit ea08442
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/flexi.php
Expand Up @@ -20,7 +20,7 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

define('FLEXI_VERSION', '0.4.1');
define('FLEXI_VERSION', '0.4.2');

/**
* Bootstrapping file for flexi. Just include this to get going.
Expand Down
2 changes: 1 addition & 1 deletion lib/template_factory.php
Expand Up @@ -242,7 +242,7 @@ function find_template($template) {
*/
function get_extension($file) {
$matches = array();
$matched = ereg('\.([^/.]+)$', $file, $matches);
$matched = preg_match('/\.([^\/.]+)$/', $file, $matches);
return $matched ? $matches[1] : NULL;
}

Expand Down

0 comments on commit ea08442

Please sign in to comment.