Author: rhari
Date: Wed Jun  6 09:38:37 2007
New Revision: 511

URL: http://svn.gna.org/viewcvs/phplinker?rev=511&view=rev
Log:
#230

Modified:
    trunk/www/admin/moderator.php
    trunk/www/admin/url_search.php
    trunk/www/lib/category.php
    trunk/www/lib/general.php

Modified: trunk/www/admin/moderator.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/moderator.php?rev=511&r1=510&r2=511&view=diff
==============================================================================
--- trunk/www/admin/moderator.php (original)
+++ trunk/www/admin/moderator.php Wed Jun  6 09:38:37 2007
@@ -142,9 +142,14 @@
           if(isset($arrayChange["id_category"])){
             if($test_for_this > 1){
               $category_name = "";
+              $tab_cat = array();
               for($x=0;$x<$test_for_this;$x++){
                 $id_categ = mysql_result($qryChange,$x,"id_category");
-                $category_name = $category_name . linker_path($id_categ)." 
<br> ";
+                $tab_cat[$x] = linker_path($id_categ);
+              }
+              asort($tab_cat);
+              foreach ($tab_cat as $key => $value){
+                $category_name = $category_name . $value ." <br> ";
               }
             }else{
               $category_name = linker_path($arrayChange["id_category"]);

Modified: trunk/www/admin/url_search.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/url_search.php?rev=511&r1=510&r2=511&view=diff
==============================================================================
--- trunk/www/admin/url_search.php (original)
+++ trunk/www/admin/url_search.php Wed Jun  6 09:38:37 2007
@@ -235,9 +235,14 @@
           if(isset($arrayChange["id_category"])){
             if($test_for_this > 1){
               $category_name ="";
+              $tab_cat = array();
               for($x=0;$x<$test_for_this;$x++){
                 $id_categ = mysql_result($qryChange,$x,"id_category");
-                $category_name = $category_name . linker_path($id_categ)." 
<br> ";
+                $tab_cat[$x] = linker_path($id_categ);
+              }
+              asort($tab_cat);
+              foreach ($tab_cat as $key => $value){
+                $category_name = $category_name . $value ." <br> ";
               }
             }else{
               $category_name = linker_path($arrayChange["id_category"]);

Modified: trunk/www/lib/category.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/lib/category.php?rev=511&r1=510&r2=511&view=diff
==============================================================================
--- trunk/www/lib/category.php (original)
+++ trunk/www/lib/category.php Wed Jun  6 09:38:37 2007
@@ -75,7 +75,7 @@
                                'id' => $id1,
                                'id_parent' => $id_parent,
                                'id_ad_tag' => $id_ad_tag,
-                               'name' => 
trim(htmlentities(utf8_decode(trim($name)))),
+                               'name' => 
trim(htmlentities(utf8_decode(ucfirst(trim($name))))),
                                'visible' => $visible,
                                'deep' => 1,
                                );
@@ -88,7 +88,7 @@
                               'id' => $child_id,
                               'id_parent' => $child_desc['id_parent'],
                               'id_ad_tag' => $child_desc['id_ad_tag'],
-                              'name' => trim($child_desc['name']),
+                              'name' => ucfirst(trim($child_desc['name'])),
                               'visible' => $child_desc['visible'],
                               'deep' => $deep + 1,
                               );

Modified: trunk/www/lib/general.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/lib/general.php?rev=511&r1=510&r2=511&view=diff
==============================================================================
--- trunk/www/lib/general.php (original)
+++ trunk/www/lib/general.php Wed Jun  6 09:38:37 2007
@@ -145,7 +145,7 @@
       } else {
        $category_query = sql_query('die', __FILE__, __LINE__, 
__FUNCTION__,"select name, id_parent from category WHERE id = " . 
(int)$categories['id']);
        $category = mysql_fetch_array($category_query);
-       $categories_array[$index][] = array('id' => $categories['id'], 'text' 
=> $category['name']);
+       $categories_array[$index][] = array('id' => $categories['id'], 'text' 
=> ucfirst($category['name']));
        if ( (linker_not_null($category['id_parent'])) && 
($category['id_parent'] != '0') )
          $categories_array = 
linker_generate_category_path($category['id_parent'], $categories_array, 
$index);
 
@@ -308,7 +308,7 @@
     $k=sizeof($calculated_category_path[$i])-1;
     for ($j=$k; $j>-1; $j--) {
       if ($id != $calculated_category_path[$i][$j]['id']){
-       $a_begin =' ';
+       $a_begin ='';
        $a_end= ' / ';
       }else{
        $a_begin ='';


_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits

Reply via email to