Index: trunk/wiki2xml/php/content_provider.php |
— | — | @@ -73,11 +73,11 @@ |
74 | 74 | $parts2 = explode ( ".wikibooks.org/" , $site ) ; |
75 | 75 | |
76 | 76 | $image = utf8_encode ( $name ) ; |
77 | | - $image2 = ucfirst ( str_replace ( " " , "_" , $image ) ) ; |
78 | | - $m = md5( $name ) ; |
| 77 | + $image2 = ucfirst ( str_replace ( " " , "_" , $name ) ) ; |
| 78 | + $m = md5( $image2 ) ; |
79 | 79 | $m1 = substr ( $m , 0 , 1 ) ; |
80 | 80 | $m2 = substr ( $m , 0 , 2 ) ; |
81 | | - $i = "{$m1}/{$m2}/" . $this->myurlencode ( $name ) ; |
| 81 | + $i = "{$m1}/{$m2}/" . $this->myurlencode ( ucfirst ( $name ) ) ; |
82 | 82 | |
83 | 83 | |
84 | 84 | if ( count ($parts ) > 1 ) { |
— | — | @@ -97,6 +97,7 @@ |
98 | 98 | } else { |
99 | 99 | $url = "http://{$site}/images/{$i}" ; |
100 | 100 | } |
| 101 | +# print "<a href='{$url}'>{$url}</a><br/>" ; |
101 | 102 | return $url ; |
102 | 103 | } |
103 | 104 | |