Project

General

Profile

« Previous | Next » 

Revision 1889

Added by Dietmar over 11 years ago

  1. bugfix solved sections block update
    ! update sections table change some varchar to int(11)
    + upgradeHelper class for better module upgrade

View differences:

class.wb.php
86 86
     * @return array Associative array containing the different components
87 87
     * 
88 88
     */
89
    public function mb_parse_url($url) {
90
        $encodedUrl = preg_replace('%[^:/?#&=\.]+%usDe', 'urlencode(\'$0\')', $url);
91
        $components = parse_url($encodedUrl);
92
        foreach ($components as &$component)
93
            $component = urldecode($component);
94
        return $components;
89
		public function mb_parse_url($url) {
90
		$encodedUrl = preg_replace_callback('%[^:/?#&=\.]+%usD',
91
		              create_function('$aMatches', ';return urlencode($aMatches[0]);'),
92
/*		                           'urlencode(\'$0\')', */
93
		                           $url);
94
		$components = parse_url($encodedUrl);
95
		foreach ($components as &$component)
96
			$component = urldecode($component);
97
return $components;
95 98
    }
96 99

  
97 100
/* ****************
......
107 110
	{
108 111
		if( $groups_list1 == '' ) { return false; }
109 112
		if( $groups_list2 == '' ) { return false; }
110
		if( !is_array($groups_list1) )
111
		{
113
		if( !is_array($groups_list1) ) {
112 114
			$groups_list1 = explode(',', $groups_list1);
113 115
		}
114
		if( !is_array($groups_list2) )
115
		{
116
		if( !is_array($groups_list2) ) {
116 117
			$groups_list2 = explode(',', $groups_list2);
117 118
		}
118 119
		$matches = array_intersect( $groups_list1, $groups_list2);

Also available in: Unified diff