jenkins-bot has submitted this change and it was merged.
Change subject: Remind people to run composer install
......................................................................
Remind people to run composer install
This confused me for a minute, so I can only imagine it will confuse others as
well.
Change-Id: Ic943b492ead2da91a0149488b2c119e5f76e7316
---
M demos/widgets.php
1 file changed, 8 insertions(+), 1 deletion(-)
Approvals:
Jforrester: Looks good to me, approved
jenkins-bot: Verified
diff --git a/demos/widgets.php b/demos/widgets.php
index 3ea8da2..ed8e93b 100644
--- a/demos/widgets.php
+++ b/demos/widgets.php
@@ -10,7 +10,14 @@
<div class="oo-ui-demo">
<div class="oo-ui-demo-container">
<?php
- require_once '../vendor/autoload.php';
+ $autoload = '../vendor/autoload.php';
+ if ( !file_exists( $autoload ) ) {
+ trigger_error(
+ '<h1>Did you forget to run
<code>composer install</code>?</h1>'
+ );
+ exit();
+ }
+ require_once $autoload;
OoUiTheme::setSingleton( new
OoUiMediaWikiTheme() );
?>
--
To view, visit https://gerrit.wikimedia.org/r/168174
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic943b492ead2da91a0149488b2c119e5f76e7316
Gerrit-PatchSet: 3
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Trevor Parscal <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits