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

Extension check for SF and adding SF JS checks in form #10

Merged
merged 2 commits into from
Feb 4, 2015
Merged

Extension check for SF and adding SF JS checks in form #10

merged 2 commits into from
Feb 4, 2015

Conversation

toniher
Copy link
Member

@toniher toniher commented Feb 3, 2015

No description provided.

return '';
}
global $wgOut; /* No other way to access http://www.mediawiki.org/wiki/Manual:$wgOut */
$wgOut->addModules( 'ext.semanticforms.main' );

Copy link
Contributor

Choose a reason for hiding this comment

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

Is not possible to use $this->getSkin()->getOutput()->addModules( ... ) ?

Copy link
Member Author

Choose a reason for hiding this comment

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

No :( At least, I didn't manage in a simpler way.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

I see what's going on. It's available in MW master but not in MW 1.23 (the one I'm testing). I'd include some conditionals there.

@toniher toniher mentioned this pull request Feb 3, 2015
@@ -19,6 +19,14 @@
die( '<b>Error:</b> This version of <a href="https://github.com/SemanticMediaWiki/SemanticSignup/">SemanticSignup</a> is only compatible with MediaWiki 1.19 or above. You need to upgrade MediaWiki first.' );
}

if ( !defined( 'SF_VERSION' ) ) {
die( '<b>Error:</b> <a href="https://github.com/SemanticMediaWiki/SemanticSignup/">SemanticSignup</a> is a Semantic Forms extension. You need to install <a href="https://www.mediawiki.org/wiki/Extension:Semantic_Forms">Semantic Forms</a> first.' );
Copy link
Contributor

Choose a reason for hiding this comment

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

How about ( !defined( 'SF_VERSION' ) || version_compare( SF_VERSION, '2.7', 'lt' ) ) {?

Copy link
Member Author

Choose a reason for hiding this comment

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

Fine for me. Just in case I would increase to 2.8 in coherence with README.md

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@mwjames mwjames mentioned this pull request Feb 4, 2015
@toniher
Copy link
Member Author

toniher commented Feb 4, 2015

It does work for MW 1.23 and MW 1.25. I would commit if possible.

@mwjames
Copy link
Contributor

mwjames commented Feb 4, 2015

Thanks. Nice to have someone making it work.

mwjames added a commit that referenced this pull request Feb 4, 2015
Extension check for SF and adding SF JS checks in form
@mwjames mwjames merged commit 539bf71 into SemanticMediaWiki:master Feb 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants