Ticket #1745: split_removal_trunk.patch
| File split_removal_trunk.patch, 2.6 kB (added by openhaus, 2 years ago) |
|---|
-
modules/navigation/classes/NavigationDAO.php
old new 218 218 } 219 219 // split off anchor if exists 220 220 if (stristr($section['resource_uri'], '#')) { 221 list(,$anchor) = split("#", $section['resource_uri']);221 list(,$anchor) = preg_split("/#/", $section['resource_uri']); 222 222 $section['anchor'] = $anchor; 223 223 } 224 224 } … … 546 546 // intercept a list of constants occuring in quotes, 547 547 // ie 'perms' => "SGL_GUEST, SGL_MEMBER, SGL_ADMIN", 548 548 if (is_string($section['perms'])) { 549 $aConstants = split(',', $section['perms']);549 $aConstants = preg_split('/,/', $section['perms']); 550 550 if (is_array($aConstants)) { 551 551 $aPerms = array(); 552 552 foreach ($aConstants as $myconstant) { -
modules/navigation/classes/SimpleDriver.php
old new 654 654 // extract anchor and place at end if exists 655 655 if (stristr($url, '#')) { 656 656 $anchorStart = strpos($url, '#'); 657 list(,$anchorFragment) = split('#', $url);657 list(,$anchorFragment) = preg_split('/#/', $url); 658 658 $anchorOffset = (strpos($anchorFragment, '&')) + 1; 659 659 $anchorEnd = $anchorStart + $anchorOffset; 660 660 $namedAnchor = substr($url, $anchorStart, $anchorOffset); -
modules/user/classes/RoleMgr.php
old new 355 355 function _parsePermsString($sPerms) 356 356 { 357 357 SGL::logMessage(null, PEAR_LOG_DEBUG); 358 $aTmpPerms = split(':', $sPerms);358 $aTmpPerms = preg_split('/:/', $sPerms); 359 359 if (count($aTmpPerms) > 0) { 360 360 array_pop($aTmpPerms); 361 361 $aPerms = array(); 362 362 foreach ($aTmpPerms as $perm) { 363 363 // chop at caret 364 list($permName, $permId) = split('\^', $perm);364 list($permName, $permId) = preg_split('/\^/', $perm); 365 365 $aPerms[$permId] = $permName; 366 366 } 367 367 } else {
