Show
Ignore:
Timestamp:
08/09/05 22:30:14 (7 years ago)
Author:
alexx
Message:
  • fix last bug in communities (see [14])
  • execute a "conversion smarty style" script ;) : for i in find . -type f | grep "\.php$" | grep -v "\.svn"; do perl -pi -e "s/\\\$smarty->assign\((.*),(.*)\);/\\\$_SMARTY\[\$1\] = \$2;/" $i; done
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/inc/search.inc.php

    r1 r15  
    2525include(INCLUDESPATH.'/countries_list.inc.php'); 
    2626$labels['profile']['country'] = $db->getAssoc('SELECT DISTINCT country, country  FROM user_contact'); 
    27 $smarty->assign('Title', 'Find your soul mate'); 
     27$_SMARTY['Title'] =  'Find your soul mate'; 
    2828 
    2929$pagination['elmt_by_page'] = 20; 
     
    9595                        $idx++; 
    9696                } 
    97                 $where[] = $field.' IN ('.implode(',', array_fill(0,count($_GET['search'][$field]), '?')).')'; 
     97                $where[] = $field.' IN ('.implode(',', @array_fill(0,count($_GET['search'][$field]), '?')).')'; 
    9898                unset($temp); 
    9999        } 
     
    137137        $pagination['nb_pages'] = 1; 
    138138 
    139 $pagination['pages'] = array_fill(1,$pagination['nb_pages'], NULL); 
     139$pagination['pages'] = @array_fill(1,$pagination['nb_pages'], NULL); 
    140140 
    141 $smarty->assign('pagination', $pagination); 
    142 $smarty->assign('search', $search); 
    143 $smarty->assign('result', $result); 
     141$_SMARTY['pagination'] =  $pagination; 
     142$_SMARTY['search'] =  $search; 
     143$_SMARTY['result'] =  $result; 
    144144 
    145145if(!$_GET['do'])