Skip to content

Commit 2c7787a

Browse files
committed
Fixed Credits and Usage
1 parent d561796 commit 2c7787a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The Extension page on MediaWiki can be found [here](https://mediawiki.org/wiki/E
77
# Usage
88

99
Put the extension files inside a folder in the extensions directory called "SimpleMath", then add this line to the LocalSettings.php file:
10-
require_once("$IP/extensions/SimpleMath/SimpleMath.php");
10+
<code>require_once("$IP/extensions/SimpleMath/SimpleMath.php");</code>
1111

1212
# License
1313

SimpleMath.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ function efMathRender( $input, $args, $parser, $frame )
1515
}
1616

1717
// Add extension information to Special:Version
18-
$wgExtensionCredits['other'][] = array(
18+
$wgExtensionCredits['parserhook']['SimpleMath'] = array(
1919
'name' => 'SimpleMath',
20-
'author' => "<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3Ehttp%3A%2F%2Fwikitechie.net%2F%3Cspan+class%3D"x x-first x-last">'>WikiTechie</a>",
21-
'description' => "Render mathematical formulas between <math> ... </math> tags using <a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%3C%2Fspan%3Ehttp%3A%2F%2Fwww.codecogs.com%2Flatex%2Feqneditor.php%3Cspan+class%3D"x x-first x-last">'>codecogs LaTeX eidtor</a>",
20+
'author' => '[http://wikitechie.net/ WikiTechie]',
21+
'description' => 'Render mathematical formulas between <nowiki><math> ... </math></nowiki> tags using [http://www.codecogs.com/latex/eqneditor.php codecogs LaTeX eidtor]',
2222
'url' => 'https://www.mediawiki.org/wiki/Extension:SimpleMath'
2323
);

0 commit comments

Comments
 (0)