mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 09:49:31 +02:00
Fix indentation.
This commit is contained in:
@ -435,10 +435,10 @@ class Extension {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Builds the delimiter that is used in a regexp to separate
|
/// Builds the delimiter that is used in a regexp to separate
|
||||||
/// text that should be parsed from text that should not be
|
/// text that should be parsed from text that should not be
|
||||||
/// parsed (e.g. inside existing links etc.)
|
/// parsed (e.g. inside existing links etc.)
|
||||||
private static function BuildDelimiters() {
|
private static function BuildDelimiters() {
|
||||||
// Configuration variables need to be defined here as globals.
|
// Configuration variables need to be defined here as globals.
|
||||||
global $wgLinkTitlesParseHeadings;
|
global $wgLinkTitlesParseHeadings;
|
||||||
global $wgLinkTitlesSkipTemplates;
|
global $wgLinkTitlesSkipTemplates;
|
||||||
@ -493,25 +493,25 @@ private static function BuildDelimiters() {
|
|||||||
'\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls
|
'\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls
|
||||||
'(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses
|
'(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses
|
||||||
')/ismS';
|
')/ismS';
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Local Debugging output function which can send output to console as well
|
/// Local Debugging output function which can send output to console as well
|
||||||
public static function ltDebugLog($text) {
|
public static function ltDebugLog($text) {
|
||||||
if (self::$ltConsoleOutputDebug)
|
if (self::$ltConsoleOutputDebug)
|
||||||
{
|
{
|
||||||
print $text . "\n";
|
print $text . "\n";
|
||||||
}
|
}
|
||||||
wfDebugLog('LinkTitles', $text , 'private');
|
wfDebugLog('LinkTitles', $text , 'private');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Local Logging output function which can send output to console as well
|
/// Local Logging output function which can send output to console as well
|
||||||
public static function ltLog($text) {
|
public static function ltLog($text) {
|
||||||
if (self::$ltConsoleOutput)
|
if (self::$ltConsoleOutput)
|
||||||
{
|
{
|
||||||
print $text . "\n";
|
print $text . "\n";
|
||||||
}
|
}
|
||||||
wfDebugLog('LinkTitles', $text , 'private');
|
wfDebugLog('LinkTitles', $text , 'private');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// vim: ts=2:sw=2:noet:comments^=\:///
|
// vim: ts=2:sw=2:noet:comments^=\:///
|
||||||
|
Reference in New Issue
Block a user