Fix error: 'Call to undefined method SkinCodex::tooltipAndAccesskey'

This commit is contained in:
Sam Benson
2013-03-15 11:41:33 +00:00
parent 51527b629d
commit 309de015fa
2 changed files with 9 additions and 9 deletions

View File

@@ -149,7 +149,7 @@ class CodexTemplate extends QuickTemplate
'onblur' => "this.value=(this.value=='') ? 'Search the Codex' : this.value;", 'onblur' => "this.value=(this.value=='') ? 'Search the Codex' : this.value;",
) )
), ),
$this->skin->tooltipAndAccesskey( 'search-go' ) $this->skin->tooltipAndAccesskeyAttribs( 'search-go' )
); );
} }
@@ -172,7 +172,7 @@ class CodexTemplate extends QuickTemplate
't-whatlinkshere', 't-whatlinkshere',
'', '',
sprintf( $this->_af, htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href']), sprintf( $this->_af, htmlspecialchars($this->data['nav_urls']['whatlinkshere']['href']),
$this->skin->tooltipAndAccesskey('t-whatlinkshere'), $this->skin->tooltipAndAccesskeyAttribs('t-whatlinkshere'),
htmlspecialchars( $this->translator->translate('whatlinkshere') ) ) htmlspecialchars( $this->translator->translate('whatlinkshere') ) )
); );
@@ -184,7 +184,7 @@ class CodexTemplate extends QuickTemplate
$alinks .= sprintf( $this->_af, $alinks .= sprintf( $this->_af,
htmlspecialchars($feed['href']), htmlspecialchars($feed['href']),
'id="'. Sanitizer::escapeId( "feed-$key" ) .'" rel="alternate" type="application/'. $key .'+xml" class="feedlink" '. 'id="'. Sanitizer::escapeId( "feed-$key" ) .'" rel="alternate" type="application/'. $key .'+xml" class="feedlink" '.
$this->skin->tooltipAndAccesskey('feed-'.$key), $this->skin->tooltipAndAccesskeyAttribs('feed-'.$key),
htmlspecialchars($feed['text']) .'&nbsp' ); htmlspecialchars($feed['text']) .'&nbsp' );
} }
@@ -199,7 +199,7 @@ class CodexTemplate extends QuickTemplate
'', '',
sprintf( $this->_af, sprintf( $this->_af,
htmlspecialchars($this->data['nav_urls'][$special]['href']), htmlspecialchars($this->data['nav_urls'][$special]['href']),
$this->skin->tooltipAndAccesskey('t-'. $special), $this->skin->tooltipAndAccesskeyAttribs('t-'. $special),
htmlspecialchars( $this->translator->translate($special) ) ) htmlspecialchars( $this->translator->translate($special) ) )
); );
} }
@@ -210,7 +210,7 @@ class CodexTemplate extends QuickTemplate
'', '',
sprintf( $this->_af, sprintf( $this->_af,
htmlspecialchars($this->data['nav_urls']['print']['href']), htmlspecialchars($this->data['nav_urls']['print']['href']),
'rel="alternate" '. $this->skin->tooltipAndAccesskey('t-print'), 'rel="alternate" '. $this->skin->tooltipAndAccesskeyAttribs('t-print'),
htmlspecialchars( $this->translator->translate('printableversion') ) ) htmlspecialchars( $this->translator->translate('printableversion') ) )
); );
@@ -220,7 +220,7 @@ class CodexTemplate extends QuickTemplate
'', '',
sprintf( $this->_af, sprintf( $this->_af,
htmlspecialchars($this->data['nav_urls']['permalink']['href']), htmlspecialchars($this->data['nav_urls']['permalink']['href']),
$this->skin->tooltipAndAccesskey('t-permalink'), $this->skin->tooltipAndAccesskeyAttribs('t-permalink'),
htmlspecialchars( $this->translator->translate('permalink') ) ) htmlspecialchars( $this->translator->translate('permalink') ) )
); );
@@ -257,7 +257,7 @@ class CodexTemplate extends QuickTemplate
$href = htmlspecialchars($tab['href']); $href = htmlspecialchars($tab['href']);
$tool = in_array( $action, array('edit', 'submit') ) && $tool = in_array( $action, array('edit', 'submit') ) &&
in_array( $key, array('edit', 'watch', 'unwatch') ) ? in_array( $key, array('edit', 'watch', 'unwatch') ) ?
$this->skin->tooltip( "ca-$key" ) : $this->skin->tooltipAndAccesskey( "ca-$key" ); $this->skin->tooltip( "ca-$key" ) : $this->skin->tooltipAndAccesskeyAttribs( "ca-$key" );
$text = htmlspecialchars($tab['text']); $text = htmlspecialchars($tab['text']);
$alink = sprintf($this->_af, $href, $tool, $text); $alink = sprintf($this->_af, $href, $tool, $text);
@@ -323,7 +323,7 @@ class CodexTemplate extends QuickTemplate
($val['active'] ? ' class="active"':''), ($val['active'] ? ' class="active"':''),
sprintf( $this->_af, sprintf( $this->_af,
htmlspecialchars($val['href']), htmlspecialchars($val['href']),
$this->skin->tooltipAndAccesskey($val['id']), $this->skin->tooltipAndAccesskeyAttribs($val['id']),
htmlspecialchars( $this->translator->translate($val['text']) ) htmlspecialchars( $this->translator->translate($val['text']) )
) )
); );

View File

@@ -29,7 +29,7 @@
<?php foreach($this->data['personal_urls'] as $key => $item) { <?php foreach($this->data['personal_urls'] as $key => $item) {
$linkf = '<a href="%s" class="%s" %s>%s</a>'; $linkf = '<a href="%s" class="%s" %s>%s</a>';
$class = $item['class'] .' '. ($item['active'] ? 'active':''); $class = $item['class'] .' '. ($item['active'] ? 'active':'');
printf( $linkf, htmlspecialchars($item['href']), $class, $skin->tooltipAndAccesskey('pt-'.$key), htmlspecialchars($item['text']) ); printf( $linkf, htmlspecialchars($item['href']), $class, $skin->tooltipAndAccesskeyAttribs('pt-'.$key), htmlspecialchars($item['text']) );
} ?> } ?>
</p> </p>
</div> </div>