Changeset 4987

Show
Ignore:
Timestamp:
08/31/07 23:58:53 (4 years ago)
Author:
p_lindheimer
Message:

#2330 allow '_' in route name changes, thanks again robert. And missing global variable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/core/functions.inc.php

    r4905 r4987  
    21432143function core_routing_setroutepriority($routepriority, $reporoutedirection, $reporoutekey) 
    21442144{ 
    2145   global $db
     2145  global $db, $amp_conf
    21462146  $counter=-1; 
    21472147  foreach ($routepriority as $tresult)  
  • modules/branches/2.3/core/module.xml

    r4961 r4987  
    44  <category>Basic</category> 
    55  <name>Core</name> 
    6   <version>2.3.0.1</version> 
     6  <version>2.3.0.2</version> 
    77  <candisable>no</candisable> 
    88  <canuninstall>no</canuninstall> 
    99  <changelog> 
     10    *2.3.0.2* #2330 allow '_' in route name changes, fix missing global variable. 
    1011    *2.3.0.1* fix support link 
    1112    *2.3.0.0* Final Release 
  • modules/branches/2.3/core/page.routing.php

    r4905 r4987  
    296296            var newname = prompt("<?php echo _("Rename route")?> " + document.getElementById('routename').value + " <?php echo _("to:")?>"); 
    297297            if (newname == null) return; 
    298           } while (!newname.match('^[a-zA-Z0-9][a-zA-Z0-9]+$') && !alert("<?php echo _("Route name is invalid...please try again")?>")); 
     298          } while (!newname.match('^[a-zA-Z0-9][a-zA-Z0-9_]+$') && !alert("<?php echo _("Route name is invalid...please try again")?>")); 
    299299           
    300300          document.getElementById('newroutename').value = newname;