Trevor Parscal has uploaded a new change for review.
https://gerrit.wikimedia.org/r/168174
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(-)
git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/74/168174/1
diff --git a/demos/widgets.php b/demos/widgets.php
index 3ea8da2..f546d1c 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: newchange
Gerrit-Change-Id: Ic943b492ead2da91a0149488b2c119e5f76e7316
Gerrit-PatchSet: 1
Gerrit-Project: oojs/ui
Gerrit-Branch: master
Gerrit-Owner: Trevor Parscal <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits