Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Fix typo in the spelling of Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Dec 8, 2014
1 parent 5c9158f commit 7865c8d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion core/controllers/CommunityController.php
Expand Up @@ -402,7 +402,7 @@ public function viewAction()

$this->view->title .= ' - '.$communityDao->getName();
$this->view->metaDescription = substr(
$this->Component->Utility->markDown($communityDao->getDescription()),
UtilityComponent::markdown($communityDao->getDescription()),
0,
160
);
Expand Down
8 changes: 4 additions & 4 deletions core/controllers/components/UtilityComponent.php
Expand Up @@ -520,12 +520,12 @@ public static function filterHtmlTags($text)
}

/**
* Convert a body of text from markdown to html.
* Convert the given text from Markdown or Markdown Extra to HTML.
*
* @param text The text to markdown
* @return The markdown rendered as HTML
* @param string $text Markdown or Markdown Extra text
* @return string HTML text
*/
public static function markDown($text)
public static function markdown($text)
{
return Michelf\MarkdownExtra::defaultTransform($text);
}
Expand Down
2 changes: 1 addition & 1 deletion core/views/community/index.phtml
Expand Up @@ -49,7 +49,7 @@ foreach ($this->otherCSSs as $uris) {
<br/>
<?php
$rawDescription = $community->getDescription();
$description = $this->Utility->markDown($rawDescription);
$description = $this->Utility->markdown($rawDescription);
$strippedDescription = strip_tags($description);
if (!empty($rawDescription)) {
?>
Expand Down
2 changes: 1 addition & 1 deletion core/views/community/view.phtml
Expand Up @@ -42,7 +42,7 @@ foreach ($this->customCSSs as $Uris) {
}
}
$rawDescription = $this->communityDao->getDescription();
$description = $this->Utility->markDown($rawDescription);
$description = $this->Utility->markdown($rawDescription);
$strippedDescription = strip_tags($description);
?>

Expand Down
2 changes: 1 addition & 1 deletion modules/landingpage/controllers/IndexCoreController.php
Expand Up @@ -37,7 +37,7 @@ public function indexAction()
$textDaos = $this->Landingpage_Text->getAll();
if (isset($textDaos[0])) {
$textDao = $textDaos[0];
$this->view->landingText = $this->Component->Utility->markDown($textDao->getText());
$this->view->landingText = UtilityComponent::markdown($textDao->getText());
} else {
$this->callCoreAction();
}
Expand Down
4 changes: 2 additions & 2 deletions modules/readmes/controllers/components/GetReadmeComponent.php
Expand Up @@ -45,8 +45,8 @@ public function fromFolder($folder)
$bitstream = $bitstreams[0];
$path = $bitstream->getAssetstore()->getPath().'/'.$bitstream->getPath();
$contents = file_get_contents($path);
$utilityComponent = MidasLoader::loadComponent('Utility');
$parsedContents = $utilityComponent->markDown($contents);
MidasLoader::loadComponent('Utility');
$parsedContents = UtilityComponent::markdown($contents);

return array('text' => $parsedContents);
}
Expand Down

0 comments on commit 7865c8d

Please sign in to comment.