Index: trunk/phpwiki/newcodebase/Article.php |
— | — | @@ -185,11 +185,12 @@ |
186 | 186 | |
187 | 187 | function isCountable( $text ) |
188 | 188 | { |
189 | | - global $wgTitle; |
| 189 | + global $wgTitle, $wgUseCommaCount; |
190 | 190 | |
191 | 191 | if ( 0 != $wgTitle->getNamespace() ) { return 0; } |
192 | 192 | if ( preg_match( "/^#redirect/i", $text ) ) { return 0; } |
193 | | - if ( false === strstr( $text, "," ) ) { return 0; } |
| 193 | + $token = ($wgUseCommaCount ? "," : "[[" ); |
| 194 | + if ( false === strstr( $text, $token ) ) { return 0; } |
194 | 195 | return 1; |
195 | 196 | } |
196 | 197 | |
Index: trunk/phpwiki/newcodebase/DefaultSettings.php |
— | — | @@ -58,11 +58,16 @@ |
59 | 59 | |
60 | 60 | $wgAllowExternalImages = true; |
61 | 61 | $wgMiserMode = false; # Disable database-intensive features |
62 | | -$wgUseTeX = false; |
| 62 | +$wgUseTeX = true; #false; |
63 | 63 | $wgUseNewInterlanguage = false; |
64 | 64 | $wgProfiling = false; # Enable for more detailed by-function times in debug log |
65 | 65 | |
66 | 66 | $wgAmericanDates = false; # Enable for English module to print dates |
67 | 67 | # as Mar 3, 2003 rather than 3 Mar 2003 |
68 | 68 | |
| 69 | +$wgUseCommaCount = false; # If true, article count will only include |
| 70 | + # those with commas (","). If false, will only |
| 71 | + # count those with links ("[["). |
| 72 | + |
| 73 | + |
69 | 74 | ?> |