Changeset 5921 for trunk/setup


Ignore:
Timestamp:
04/11/12 17:21:30 (12 years ago)
Author:
marcosw
Message:

Ticket #2398 - Compatibilizacao com PHP-5.3 em alguns módulos do expresso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/setup/manageheader.php

    r3991 r5921  
    3131         */ 
    3232        $realpath = realpath('..'); 
    33         if(!ereg('^' . $_SERVER['DOCUMENT_ROOT'],$realpath)) 
     33        if(!preg_match("/^$_SERVER['DOCUMENT_ROOT']/",$realpath)) 
    3434        { 
    3535                if(PHP_OS == 'Windows') 
Note: See TracChangeset for help on using the changeset viewer.