Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ereg deprecated in PHP 5.3 #1

Open
scotto opened this issue Oct 5, 2011 · 1 comment
Open

ereg deprecated in PHP 5.3 #1

scotto opened this issue Oct 5, 2011 · 1 comment

Comments

@scotto
Copy link
Contributor

scotto commented Oct 5, 2011

Here's a patch:

--- mcp.dc_template_manager.php.orig 2010-04-25 17:54:05.000000000 -0400
+++ mcp.dc_template_manager.php 2011-10-05 12:12:23.327073941 -0400
@@ -705,7 +705,7 @@

        $basepath = $PREFS->ini('tmpl_file_basepath');
  •       if ( ! ereg("/$", $basepath)) $basepath .= '/';
    
  •       if ( ! preg_match("#/$#", $basepath)) $basepath .= '/';
    
        $basepath .= $query->row['group_name'].'/'.$query->row['template_name'].'.php';
    

@@ -736,7 +736,7 @@

    $basepath = $PREFS->ini('tmpl_file_basepath');
  •   if ( ! ereg("/$", $basepath)) $basepath .= '/';
    
  •   if ( ! preg_match("#/$#", $basepath)) $basepath .= '/';
    
    $basepath .= $group_name.'/'.$template_name.'.php';
    

@@ -891,7 +891,7 @@
$qs = ($PREFS->ini('force_query_string') == 'y') ? '' : '?';
$sitepath = $FNS->fetch_site_index(0, 0).$qs.'URL='.$FNS->fetch_site_index();

  •    if ( ! ereg("/$", $sitepath))
    
  •    if ( ! preg_match("#/$#", $sitepath))
        $sitepath .= '/';
    
    $viewurl = $sitepath;
    
@peschee
Copy link

peschee commented Oct 6, 2011

Hi scotto

Thank you for spotting this. Could you please make a pull request? It will be easier to incorporate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants