";
if ( $thumbUrl == '' ) {
- $s .= str_replace( "$1", $img->getName(), wfMsg('missingimage') );
+ $s .= wfMsg( 'missingimage', $img->getName() );
$zoomicon = '';
} else {
$s .= '
'.
@@ -1905,16 +2024,15 @@ class Skin {
return str_replace("\n", ' ', $s);
}
- function makeMediaLink( $name, $url, $alt = "" ) {
- $nt = Title::makeTitle( Namespace::getMedia(), $name );
+ function makeMediaLink( $name, $url, $alt = '' ) {
+ $nt = Title::makeTitleSafe( Namespace::getMedia(), $name );
return $this->makeMediaLinkObj( $nt, $alt );
}
- function makeMediaLinkObj( $nt, $alt = "" )
- {
+ function makeMediaLinkObj( $nt, $alt = '' ) {
if ( ! isset( $nt ) )
{
- ### HOTFIX. Instead of breaking, return empry string.
+ ### HOTFIX. Instead of breaking, return empty string.
$s = $alt;
} else {
$name = $nt->getDBKey();
@@ -1922,15 +2040,14 @@ class Skin {
if ( empty( $alt ) ) {
$alt = preg_replace( '/\.(.+?)^/', '', $name );
}
-
+
$u = htmlspecialchars( $url );
$s = "{$alt}";
}
return $s;
}
- function specialLink( $name, $key = "" )
- {
+ function specialLink( $name, $key = '' ) {
global $wgLang;
if ( '' == $key ) { $key = strtolower( $name ); }
@@ -1938,7 +2055,7 @@ class Skin {
return $this->makeKnownLink( $wgLang->specialPage( $pn ),
wfMsg( $key ) );
}
-
+
function makeExternalLink( $url, $text, $escape = true ) {
$style = $this->getExternalLinkAttributes( $url, $text );
$url = htmlspecialchars( $url );
@@ -1952,8 +2069,7 @@ class Skin {
#
# Returns text for the start of the tabular part of RC
- function beginRecentChangesList()
- {
+ function beginRecentChangesList() {
$this->rc_cache = array() ;
$this->rcMoveIndex = 0;
$this->rcCacheIndex = 0 ;
@@ -1962,17 +2078,17 @@ class Skin {
return '';
}
- function beginImageHistoryList()
- {
+ function beginImageHistoryList() {
$s = "\n
" . wfMsg( 'imghistory' ) . "
\n" .
"
" . wfMsg( 'imghistlegend' ) . "
\n".'
';
return $s;
}
- # Returns text for the end of RC
- # If enhanced RC is in use, returns pretty much all the text
- function endRecentChangesList()
- {
+ /**
+ * Returns text for the end of RC
+ * If enhanced RC is in use, returns pretty much all the text
+ */
+ function endRecentChangesList() {
$s = $this->recentChangesBlock() ;
if( $this->rclistOpen ) {
$s .= "
\n";
@@ -1980,9 +2096,10 @@ class Skin {
return $s;
}
- # Enhanced RC ungrouped line
- function recentChangesBlockLine ( $rcObj )
- {
+ /**
+ * Enhanced RC ungrouped line
+ */
+ function recentChangesBlockLine ( $rcObj ) {
global $wgStylePath, $wgLang ;
# Get rc_xxxx variables
@@ -2037,7 +2154,7 @@ class Skin {
# Comment
if ( $rc_comment != '' && $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
- $rc_comment=$this->formatComment($rc_comment);
+ $rc_comment=$this->formatComment($rc_comment, $rcObj->getTitle());
$r .= $wgLang->emphasize( ' ('.$rc_comment.')' );
}
@@ -2045,9 +2162,10 @@ class Skin {
return $r ;
}
- # Enhanced RC group
- function recentChangesBlockGroup ( $block )
- {
+ /**
+ * Enhanced RC group
+ */
+ function recentChangesBlockGroup ( $block ) {
global $wgStylePath, $wgLang ;
$r = '' ;
@@ -2101,13 +2219,13 @@ class Skin {
$link = $block[0]->link ;
if ( $block[0]->watched ) $link = '
'.$link.'' ;
$r .= $link ;
-
+
$curIdEq = 'curid=' . $block[0]->mAttribs['rc_cur_id'];
if ( $block[0]->mAttribs['rc_type'] != RC_LOG ) {
# Changes
$r .= ' ('.count($block).' ' ;
if ( $isnew ) $r .= wfMsg('changes');
- else $r .= $this->makeKnownLinkObj( $block[0]->getTitle() , wfMsg('changes') ,
+ else $r .= $this->makeKnownLinkObj( $block[0]->getTitle() , wfMsg('changes') ,
$curIdEq.'&diff=0&oldid='.$oldid ) ;
$r .= '; ' ;
@@ -2124,7 +2242,7 @@ class Skin {
foreach ( $block AS $rcObj ) {
# Get rc_xxxx variables
extract( $rcObj->mAttribs );
-
+
$r .= '
![]('.$wgStylePath.'/images/Arr_.png)
';
$r .= '
' ;
if ( $rc_new ) $r .= $N ;
@@ -2152,7 +2270,7 @@ class Skin {
$r .= ') . . '.$rcObj->userlink ;
$r .= $rcObj->usertalklink ;
if ( $rc_comment != '' ) {
- $rc_comment=$this->formatComment($rc_comment);
+ $rc_comment=$this->formatComment($rc_comment, $rcObj->getTitle());
$r .= $wgLang->emphasize( ' ('.$rc_comment.')' ) ;
}
$r .= "
\n" ;
@@ -2163,10 +2281,11 @@ class Skin {
return $r ;
}
- # If enhanced RC is in use, this function takes the previously cached
- # RC lines, arranges them, and outputs the HTML
- function recentChangesBlock ()
- {
+ /**
+ * If enhanced RC is in use, this function takes the previously cached
+ * RC lines, arranges them, and outputs the HTML
+ */
+ function recentChangesBlock () {
global $wgStylePath ;
if ( count ( $this->rc_cache ) == 0 ) return '' ;
$blockOut = '';
@@ -2181,10 +2300,11 @@ class Skin {
return ''.$blockOut.'
' ;
}
- # Called in a loop over all displayed RC entries
- # Either returns the line, or caches it for later use
- function recentChangesLine( &$rc, $watched = false )
- {
+ /**
+ * Called in a loop over all displayed RC entries
+ * Either returns the line, or caches it for later use
+ */
+ function recentChangesLine( &$rc, $watched = false ) {
global $wgUser ;
$usenew = $wgUser->getOption( 'usenewrc' );
if ( $usenew )
@@ -2194,9 +2314,8 @@ class Skin {
return $line ;
}
- function recentChangesLineOld( &$rc, $watched = false )
- {
- global $wgTitle, $wgLang, $wgUser, $wgRCSeconds;
+ function recentChangesLineOld( &$rc, $watched = false ) {
+ global $wgTitle, $wgLang, $wgUser, $wgRCSeconds, $wgUseRCPatrol, $wgOnlySysopsCanPatrol;
# Extract DB fields into local scope
extract( $rc->mAttribs );
@@ -2211,7 +2330,9 @@ class Skin {
$this->lastdate = $date;
$this->rclistOpen = true;
}
- $s .= ' ';
+
+ # If this edit has not yet been patrolled, make it stick out
+ $s .= ( ! $wgUseRCPatrol || $rc_patrolled ) ? ' ' : ' ';
if ( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
# Diff
@@ -2219,22 +2340,29 @@ class Skin {
# Hist
$s .= $this->makeKnownLinkObj( $rc->getMovedToTitle(), wfMsg( 'hist' ), 'action=history' ) .
') . . ';
-
+
# "[[x]] moved to [[y]]"
- if ( $rc_type == RC_MOVE ) {
- $msg = '1movedto2';
- } else {
- $msg = '1movedto2_redir';
- }
+ $msg = ( $rc_type == RC_MOVE ) ? '1movedto2' : '1movedto2_redir';
$s .= wfMsg( $msg, $this->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ),
$this->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) );
+ } elseif( $rc_namespace == NS_SPECIAL && preg_match( '!^Log/(.*)$!', $rc_title, $matches ) ) {
+ # Log updates, etc
+ $logtype = $matches[1];
+ $logname = LogPage::logName( $logtype );
+ $s .= '(' . $this->makeKnownLinkObj( $rc->getTitle(), $logname ) . ')';
} else {
# Diff link
if ( $rc_type == RC_NEW || $rc_type == RC_LOG ) {
$diffLink = wfMsg( 'diff' );
} else {
+ if ( $wgUseRCPatrol && $rc_patrolled == 0 && $wgUser->getID() != 0 &&
+ ( $wgUser->isSysop() || !$wgOnlySysopsCanPatrol ) )
+ $rcidparam = "&rcid={$rc_id}";
+ else
+ $rcidparam = "";
$diffLink = $this->makeKnownLinkObj( $rc->getTitle(), wfMsg( 'diff' ),
- $curIdEq.'&diff='.$rc_this_oldid.'&oldid='.$rc_last_oldid ,'' ,'' , ' tabindex="'.$rc->counter.'"');
+ "{$curIdEq}&diff={$rc_this_oldid}&oldid={$rc_last_oldid}{$rcidparam}",
+ '', '', ' tabindex="'.$rc->counter.'"');
}
$s .= '('.$diffLink.') (';
@@ -2243,13 +2371,17 @@ class Skin {
$s .= ') . . ';
# M and N (minor and new)
- $M = wfMsg( 'minoreditletter' );
- $N = wfMsg( 'newpageletter' );
- if ( $rc_minor ) { $s .= ' '.$M.''; }
- if ( $rc_type == RC_NEW ) { $s .= ''.$N.''; }
+ if ( $rc_minor ) { $s .= ' '.wfMsg( "minoreditletter" ).''; }
+ if ( $rc_type == RC_NEW ) { $s .= ''.wfMsg( "newpageletter" ).''; }
# Article link
- $articleLink = $this->makeKnownLinkObj( $rc->getTitle(), '' );
+ # If it's a new article, there is no diff link, but if it hasn't been
+ # patrolled yet, we need to give users a way to do so
+ if ( $wgUseRCPatrol && $rc_type == RC_NEW && $rc_patrolled == 0 &&
+ $wgUser->getID() != 0 && ( $wgUser->isSysop() || !$wgOnlySysopsCanPatrol ) )
+ $articleLink = $this->makeKnownLinkObj( $rc->getTitle(), '', "rcid={$rc_id}" );
+ else
+ $articleLink = $this->makeKnownLinkObj( $rc->getTitle(), '' );
if ( $watched ) {
$articleLink = ''.$articleLink.'';
@@ -2294,7 +2426,7 @@ class Skin {
# Add comment
if ( '' != $rc_comment && '*' != $rc_comment && $rc_type != RC_MOVE && $rc_type != RC_MOVE_OVER_REDIRECT ) {
- $rc_comment=$this->formatComment($rc_comment);
+ $rc_comment=$this->formatComment($rc_comment,$rc->getTitle());
$s .= $wgLang->emphasize(' (' . $rc_comment . ')');
}
$s .= "\n";
@@ -2302,9 +2434,7 @@ class Skin {
return $s;
}
-# function recentChangesLineNew( $ts, $u, $ut, $ns, $ttl, $c, $isminor, $isnew, $watched = false, $oldid = 0 , $diffid = 0 )
- function recentChangesLineNew( &$baseRC, $watched = false )
- {
+ function recentChangesLineNew( &$baseRC, $watched = false ) {
global $wgTitle, $wgLang, $wgUser, $wgRCSeconds;
# Create a specialised object
@@ -2316,7 +2446,7 @@ class Skin {
# If it's a new day, add the headline and flush the cache
$date = $wgLang->date( $rc_timestamp, true);
- $ret = '' ;
+ $ret = '';
if ( $date != $this->lastdate ) {
# Process current cache
$ret = $this->recentChangesBlock () ;
@@ -2324,30 +2454,31 @@ class Skin {
$ret .= "{$date}
\n";
$this->lastdate = $date;
}
-
+
# Make article link
if ( $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
- if ( $rc_type == RC_MOVE ) {
- $msg = "1movedto2";
- } else {
- $msg = "1movedto2_redir";
- }
- $clink = wfMsg( $msg, $this->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ),
+ $msg = ( $rc_type == RC_MOVE ) ? "1movedto2" : "1movedto2_redir";
+ $clink = wfMsg( $msg, $this->makeKnownLinkObj( $rc->getTitle(), '', 'redirect=no' ),
$this->makeKnownLinkObj( $rc->getMovedToTitle(), '' ) );
+ } elseif( $rc_namespace == NS_SPECIAL && preg_match( '!^Log/(.*)$!', $rc_title, $matches ) ) {
+ # Log updates, etc
+ $logtype = $matches[1];
+ $logname = LogPage::logName( $logtype );
+ $clink = '(' . $this->makeKnownLinkObj( $rc->getTitle(), $logname ) . ')';
} else {
$clink = $this->makeKnownLinkObj( $rc->getTitle(), '' ) ;
}
-
+
$time = $wgLang->time( $rc_timestamp, true, $wgRCSeconds );
$rc->watched = $watched ;
$rc->link = $clink ;
$rc->timestamp = $time;
-
+
# Make "cur" and "diff" links
if ( ( $rc_type == RC_NEW && $rc_this_oldid == 0 ) || $rc_type == RC_LOG || $rc_type == RC_MOVE || $rc_type == RC_MOVE_OVER_REDIRECT ) {
$curLink = wfMsg( 'cur' );
$diffLink = wfMsg( 'diff' );
- } else {
+ } else {
$query = $curIdEq.'&diff=0&oldid='.$rc_this_oldid;
$aprops = ' tabindex="'.$baseRC->counter.'"';
$curLink = $this->makeKnownLinkObj( $rc->getTitle(), wfMsg( 'cur' ), $query, '' ,'' , $aprops );
@@ -2364,25 +2495,24 @@ class Skin {
}
# Make user link (or user contributions for unregistered users)
- if ( 0 == $rc_user ) {
+ if ( $rc_user == 0 ) {
$userLink = $this->makeKnownLink( $wgLang->specialPage( 'Contributions' ),
$rc_user_text, 'target=' . $rc_user_text );
- } else {
+ } else {
$userLink = $this->makeLink( $wgLang->getNsText(
- Namespace::getUser() ) . ':'.$rc_user_text, $rc_user_text );
+ Namespace::getUser() ) . ':'.$rc_user_text, $rc_user_text );
}
- $rc->userlink = $userLink ;
- $rc->lastlink = $lastLink ;
- $rc->curlink = $curLink ;
+ $rc->userlink = $userLink;
+ $rc->lastlink = $lastLink;
+ $rc->curlink = $curLink;
$rc->difflink = $diffLink;
-
- # Make user talk link
+ # Make user talk link
$utns=$wgLang->getNsText(NS_USER_TALK);
$talkname=$wgLang->getNsText(NS_TALK); # use the shorter name
- $userTalkLink= $this->makeLink($utns . ':'.$rc_user_text, $talkname );
-
+ $userTalkLink= $this->makeLink($utns . ':'.$rc_user_text, $talkname );
+
global $wgDisableAnonTalk;
if ( ( 0 == $rc_user ) && $wgUser->isSysop() ) {
$blockLink = $this->makeKnownLink( $wgLang->specialPage(
@@ -2412,22 +2542,28 @@ class Skin {
return $ret;
}
- function endImageHistoryList()
- {
+ function endImageHistoryList() {
$s = "\n";
return $s;
}
- /* This function is called by all recent changes variants, by the page history,
- and by the user contributions list. It is responsible for formatting edit
- comments. It escapes any HTML in the comment, but adds some CSS to format
- auto-generated comments (from section editing) and formats [[wikilinks]].
- Main author: Erik Möller (moeller@scireview.de)
- */
- function formatComment($comment)
- {
+ /**
+ * This function is called by all recent changes variants, by the page history,
+ * and by the user contributions list. It is responsible for formatting edit
+ * comments. It escapes any HTML in the comment, but adds some CSS to format
+ * auto-generated comments (from section editing) and formats [[wikilinks]].
+ *
+ * The &$title parameter must be a title OBJECT. It is used to generate a
+ * direct link to the section in the autocomment.
+ * @author Erik Moeller
+ *
+ * Note: there's not always a title to pass to this function.
+ * Since you can't set a default parameter for a reference, I've turned it
+ * temporarily to a value pass. Should be adjusted further. --brion
+ */
+ function formatComment($comment, $title = NULL) {
global $wgLang;
- $comment=wfEscapeHTML($comment);
+ $comment = htmlspecialchars( $comment );
# The pattern for autogen comments is / * foo * /, which makes for
# some nasty regex.
@@ -2437,7 +2573,18 @@ class Skin {
$pre=$match[1];
$auto=$match[2];
$post=$match[3];
+ $link='';
+ if($title) {
+ $section=$auto;
+
+ # This is hackish but should work in most cases.
+ $section=str_replace('[[','',$section);
+ $section=str_replace(']]','',$section);
+ $title->mFragment=$section;
+ $link=$this->makeKnownLinkObj($title,wfMsg('sectionlink'));
+ }
$sep='-';
+ $auto=$link.$auto;
if($pre) { $auto = $sep.' '.$auto; }
if($post) { $auto .= ' '.$sep; }
$auto='';
@@ -2446,35 +2593,41 @@ class Skin {
# format regular and media links - all other wiki formatting
# is ignored
- while(preg_match('/\[\[(.*?)(\|(.*?))*\]\]/',$comment,$match)) {
-
- $medians = $wgLang->getNsText(Namespace::getMedia()).':';
- $func='makeLink';
- if(preg_match('/^'.$medians.'/i',$match[1])) {
- $func='makeMediaLink';
- }
+ $medians = $wgLang->getNsText(Namespace::getMedia()).':';
+ while(preg_match('/\[\[(.*?)(\|(.*?))*\]\](.*)$/',$comment,$match)) {
# Handle link renaming [[foo|text]] will show link as "text"
- if(isset($match[3]) ) {
- $comment=
- preg_replace('/\[\[(.*?)\]\]/',
- $this->$func($match[1],$match[3]),$comment,1);
+ if( "" != $match[3] ) {
+ $text = $match[3];
} else {
- $comment=
- preg_replace('/\[\[(.*?)\]\]/',
- $this->$func($match[1],$match[1]),$comment,1);
+ $text = $match[1];
}
+ if( preg_match( '/^' . $medians . '(.*)$/i', $match[1], $submatch ) ) {
+ # Media link; trail not supported.
+ $linkRegexp = '/\[\[(.*?)\]\]/';
+ $thelink = $this->makeMediaLink( $submatch[1], "", $text );
+ } else {
+ # Other kind of link
+ if( preg_match( wfMsg( "linktrail" ), $match[4], $submatch ) ) {
+ $trail = $submatch[1];
+ } else {
+ $trail = "";
+ }
+ $linkRegexp = '/\[\[(.*?)\]\]' . preg_quote( $trail, '/' ) . '/';
+ if ($match[1][0] == ':')
+ $match[1] = substr($match[1], 1);
+ $thelink = $this->makeLink( $match[1], $text, "", $trail );
+ }
+ $comment = preg_replace( $linkRegexp, $thelink, $comment, 1 );
}
-
return $comment;
-
}
- function imageHistoryLine( $iscur, $timestamp, $img, $user, $usertext, $size, $description )
- {
+ function imageHistoryLine( $iscur, $timestamp, $img, $user, $usertext, $size, $description ) {
global $wgUser, $wgLang, $wgTitle;
$datetime = $wgLang->timeanddate( $timestamp, true );
$del = wfMsg( 'deleteimg' );
+ $delall = wfMsg( 'deleteimgcompletely' );
$cur = wfMsg( 'cur' );
if ( $iscur ) {
@@ -2483,15 +2636,15 @@ class Skin {
if ( $wgUser->isSysop() ) {
$link = $wgTitle->escapeLocalURL( 'image=' . $wgTitle->getPartialURL() .
'&action=delete' );
- $style = $this->getInternalLinkAttributes( $link, $del );
+ $style = $this->getInternalLinkAttributes( $link, $delall );
- $dlink = ''.$del.'';
+ $dlink = ''.$delall.'';
} else {
$dlink = $del;
}
} else {
- $url = wfEscapeHTML( wfImageArchiveUrl( $img ) );
- if( $wgUser->getID() != 0 ) {
+ $url = htmlspecialchars( wfImageArchiveUrl( $img ) );
+ if( $wgUser->getID() != 0 && $wgTitle->userCanEdit() ) {
$rlink = $this->makeKnownLink( $wgTitle->getPrefixedText(),
wfMsg( 'revertimg' ), 'action=revert&oldimage=' .
urlencode( $img ) );
@@ -2519,7 +2672,7 @@ class Skin {
if ( '' != $description && '*' != $description ) {
$sk=$wgUser->getSkin();
- $s .= $wgLang->emphasize(' (' . $sk->formatComment($description) . ')');
+ $s .= $wgLang->emphasize(' (' . $sk->formatComment($description,$wgTitle) . ')');
}
$s .= "\n";
return $s;
@@ -2533,7 +2686,9 @@ class Skin {
return str_repeat( "\n", $level>0 ? $level : 0 );
}
- # parameter level defines if we are on an indentation level
+ /**
+ * parameter level defines if we are on an indentation level
+ */
function tocLine( $anchor, $tocline, $level ) {
$link = '
'.$tocline.'';
if($level) {
@@ -2556,7 +2711,10 @@ class Skin {
$toc."\n";
}
- # These two do not check for permissions: check $wgTitle->userCanEdit before calling them
+ /**
+ * These two do not check for permissions: check $wgTitle->userCanEdit
+ * before calling them
+ */
function editSectionScript( $section, $head ) {
global $wgTitle, $wgRequest;
if( $wgRequest->getInt( 'oldid' ) && ( $wgRequest->getVal( 'diff' ) != '0' ) ) {
@@ -2591,102 +2749,107 @@ class Skin {
}
- // This function is called by EditPage.php and shows a bulletin board style
- // toolbar for common editing functions. It can be disabled in the user preferences.
- // The necsesary JavaScript code can be found in style/wikibits.js.
+ /**
+ * This function is called by EditPage.php and shows a bulletin board style
+ * toolbar for common editing functions. It can be disabled in the user
+ * preferences.
+ * The necsesary JavaScript code can be found in style/wikibits.js.
+ */
function getEditToolbar() {
global $wgStylePath, $wgLang, $wgMimeType;
- // toolarray an array of arrays which each include the filename of
- // the button image (without path), the opening tag, the closing tag,
- // and optionally a sample text that is inserted between the two when no
- // selection is highlighted.
- // The tip text is shown when the user moves the mouse over the button.
-
- // Already here are accesskeys (key), which are not used yet until someone
- // can figure out a way to make them work in IE. However, we should make
- // sure these keys are not defined on the edit page.
+ /**
+ * toolarray an array of arrays which each include the filename of
+ * the button image (without path), the opening tag, the closing tag,
+ * and optionally a sample text that is inserted between the two when no
+ * selection is highlighted.
+ * The tip text is shown when the user moves the mouse over the button.
+ *
+ * Already here are accesskeys (key), which are not used yet until someone
+ * can figure out a way to make them work in IE. However, we should make
+ * sure these keys are not defined on the edit page.
+ */
$toolarray=array(
array( 'image'=>'button_bold.png',
- 'open'=>"\'\'\'",
- 'close'=>"\'\'\'",
- 'sample'=>wfMsg('bold_sample'),
- 'tip'=>wfMsg('bold_tip'),
- 'key'=>'B'
+ 'open' => "\'\'\'",
+ 'close' => "\'\'\'",
+ 'sample'=> wfMsg('bold_sample'),
+ 'tip' => wfMsg('bold_tip'),
+ 'key' => 'B'
),
- array( "image"=>"button_italic.png",
- "open"=>"\'\'",
- "close"=>"\'\'",
- "sample"=>wfMsg("italic_sample"),
- "tip"=>wfMsg("italic_tip"),
- "key"=>"I"
+ array( 'image'=>'button_italic.png',
+ 'open' => "\'\'",
+ 'close' => "\'\'",
+ 'sample'=> wfMsg('italic_sample'),
+ 'tip' => wfMsg('italic_tip'),
+ 'key' => 'I'
),
- array( "image"=>"button_link.png",
- "open"=>"[[",
- "close"=>"]]",
- "sample"=>wfMsg("link_sample"),
- "tip"=>wfMsg("link_tip"),
- "key"=>"L"
+ array( 'image'=>'button_link.png',
+ 'open' => '[[',
+ 'close' => ']]',
+ 'sample'=> wfMsg('link_sample'),
+ 'tip' => wfMsg('link_tip'),
+ 'key' => 'L'
),
- array( "image"=>"button_extlink.png",
- "open"=>"[",
- "close"=>"]",
- "sample"=>wfMsg("extlink_sample"),
- "tip"=>wfMsg("extlink_tip"),
- "key"=>"X"
+ array( 'image'=>'button_extlink.png',
+ 'open' => '[',
+ 'close' => ']',
+ 'sample'=> wfMsg('extlink_sample'),
+ 'tip' => wfMsg('extlink_tip'),
+ 'key' => 'X'
),
- array( "image"=>"button_headline.png",
- "open"=>"\\n== ",
- "close"=>" ==\\n",
- "sample"=>wfMsg("headline_sample"),
- "tip"=>wfMsg("headline_tip"),
- "key"=>"H"
+ array( 'image'=>'button_headline.png',
+ 'open' => "\\n== ",
+ 'close' => " ==\\n",
+ 'sample'=> wfMsg('headline_sample'),
+ 'tip' => wfMsg('headline_tip'),
+ 'key' => 'H'
),
- array( "image"=>"button_image.png",
- "open"=>"[[".$wgLang->getNsText(NS_IMAGE).":",
- "close"=>"]]",
- "sample"=>wfMsg("image_sample"),
- "tip"=>wfMsg("image_tip"),
- "key"=>"D"
+ array( 'image'=>'button_image.png',
+ 'open' => '[['.$wgLang->getNsText(NS_IMAGE).":",
+ 'close' => ']]',
+ 'sample'=> wfMsg('image_sample'),
+ 'tip' => wfMsg('image_tip'),
+ 'key' => 'D'
),
- array( "image"=>"button_media.png",
- "open"=>"[[".$wgLang->getNsText(NS_MEDIA).":",
- "close"=>"]]",
- "sample"=>wfMsg("media_sample"),
- "tip"=>wfMsg("media_tip"),
- "key"=>"M"
+ array( 'image' => 'button_media.png',
+ 'open' => '[['.$wgLang->getNsText(NS_MEDIA).':',
+ 'close' => ']]',
+ 'sample'=> wfMsg('media_sample'),
+ 'tip' => wfMsg('media_tip'),
+ 'key' => 'M'
),
- array( "image"=>"button_math.png",
- "open"=>"\\
",
- "sample"=>wfMsg("math_sample"),
- "tip"=>wfMsg("math_tip"),
- "key"=>"C"
+ array( 'image' => 'button_math.png',
+ 'open' => "\\
",
+ 'sample'=> wfMsg('math_sample'),
+ 'tip' => wfMsg('math_tip'),
+ 'key' => 'C'
),
- array( "image"=>"button_nowiki.png",
- "open"=>"\\
",
- "close"=>"\\",
- "sample"=>wfMsg("nowiki_sample"),
- "tip"=>wfMsg("nowiki_tip"),
- "key"=>"N"
+ array( 'image' => 'button_nowiki.png',
+ 'open' => "\\
",
+ 'close' => "\\",
+ 'sample'=> wfMsg('nowiki_sample'),
+ 'tip' => wfMsg('nowiki_tip'),
+ 'key' => 'N'
),
- array( "image"=>"button_sig.png",
- "open"=>"--~~~~",
- "close"=>"",
- "sample"=>"",
- "tip"=>wfMsg("sig_tip"),
- "key"=>"Y"
+ array( 'image' => 'button_sig.png',
+ 'open' => '--~~~~',
+ 'close' => '',
+ 'sample'=> '',
+ 'tip' => wfMsg('sig_tip'),
+ 'key' => 'Y'
),
- array( "image"=>"button_hr.png",
- "open"=>"\\n----\\n",
- "close"=>"",
- "sample"=>"",
- "tip"=>wfMsg("hr_tip"),
- "key"=>"R"
+ array( 'image' => 'button_hr.png',
+ 'open' => "\\n----\\n",
+ 'close' => '',
+ 'sample'=> '',
+ 'tip' => wfMsg('hr_tip'),
+ 'key' => 'R'
)
);
$toolbar ="";
return $toolbar;
}
+ /**
+ * @access public
+ */
+ function suppressUrlExpansion() {
+ return false;
+ }
+}
+
}
?>