Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wplang
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Noblogs
wplang
Commits
3194a2a7
Commit
3194a2a7
authored
6 years ago
by
Bjørn Johansen
Browse files
Options
Downloads
Patches
Plain Diff
Version 0.1.1
parent
68fb0df3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
composer.json
+1
-1
1 addition, 1 deletion
composer.json
src/Wplang.php
+1
-1
1 addition, 1 deletion
src/Wplang.php
with
2 additions
and
2 deletions
composer.json
+
1
−
1
View file @
3194a2a7
{
"name"
:
"bjornjohansen/wplang"
,
"description"
:
"Composer plugin to download translation files from wordpress.org"
,
"version"
:
"0.1.
0
"
,
"version"
:
"0.1.
1
"
,
"license"
:
"GPL-2.0+"
,
"type"
:
"composer-plugin"
,
"authors"
:
[
...
...
This diff is collapsed.
Click to expand it.
src/Wplang.php
+
1
−
1
View file @
3194a2a7
...
...
@@ -77,7 +77,7 @@ class Wplang implements PluginInterface, EventSubscriberInterface {
* @param PackageEvent $event The package event object.
*/
public
function
onPackageAction
(
PackageEvent
$event
)
{
if
(
$event
->
getOperation
()
->
getJobType
()
==
'update'
)
{
if
(
'update'
===
$event
->
getOperation
()
->
getJobType
()
)
{
$package
=
$event
->
getOperation
()
->
getTargetPackage
();
}
else
{
$package
=
$event
->
getOperation
()
->
getPackage
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment