Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SRF 'format=graph' to use GraphViz extension version 1.1+. #46

Merged
merged 5 commits into from
Jun 25, 2014

Conversation

welterkj
Copy link
Contributor

Also update SRF composer.json to suggest mediawiki/graphviz.

Update SRF composer.json to suggest mediawiki/graphviz.
$result = renderGraphviz( $graphInput );
// Calls graphvizParserHook function from MediaWiki GraphViz extension
global $wgParser;
$result = GraphViz::graphvizParserHook( $graphInput, "", $wgParser );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use $GLOBALS['wgParser'] instead since we don't want to expose global $wgParser; to other objects

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to other objects

??? The only difference is in the function scope.

I prefer using $GLOBALS, though in this case it is the last of our worries, and global $wg is used all over the place anyway. So I'd not block this commit on that

mwjames added a commit that referenced this pull request Jun 25, 2014
Update SRF 'format=graph' to use GraphViz extension version 1.1+.
@mwjames mwjames merged commit 2a95ca9 into SemanticMediaWiki:master Jun 25, 2014
@mwjames
Copy link
Contributor

mwjames commented Jun 25, 2014

Release notes should be updated to state that format=graph is supported by mediawiki/graph-viz

PS : https://www.mediawiki.org/wiki/Extension:GraphViz still shows some composer require mediawiki/graphviz vs mediawiki/graph-viz

@mwjames mwjames added this to the 1.9.2 milestone Jun 25, 2014
@mwjames
Copy link
Contributor

mwjames commented Jun 25, 2014

Thanks for making composer support available for format=graph.

@mwjames
Copy link
Contributor

mwjames commented Jun 25, 2014

@kghbln FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants