Skip to content

Commit

Permalink
Merge pull request #123 from webasyst/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
alexmuz committed Sep 30, 2015
2 parents 28367fb + 15760b6 commit 059db3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion wa-system/locale/waLocale.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ function _w($msgid1, $msgid2 = null, $n = null, $sprintf = true)
function sprintf_wp()
{
$args = func_get_args();
array_unshift($args, _w(array_shift($args)));
array_unshift($args, _wp(array_shift($args)));
return call_user_func_array('sprintf', $args);
}

Expand Down
6 changes: 0 additions & 6 deletions wa-system/plugin/waPlugin.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ public function getName()
return $this->info['name'];
}

public function getInfo()
{
return $this->info;
}


public function getVersion()
{
$version = isset($this->info['version']) ? $this->info['version'] : '0.0.1';
Expand Down

2 comments on commit 059db3c

@SergeR
Copy link
Contributor

@SergeR SergeR commented on 059db3c Sep 30, 2015

Choose a reason for hiding this comment

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

Свойство $info у нас protected, поэтому какая-то возможность доступа к полям описания плагина быть все-таки должна, IMHO.

getInfo() можно было бы наоборот расширить, чтобы не только весь массив сразу получать, а по примеру getSettings() получить какой-то определенный параметр.

Или планируется просто геттер?

@alexmuz
Copy link
Contributor Author

Choose a reason for hiding this comment

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

public method getInfo как оказалось используется в нескольких плагинах сторонних разработчиков
в итоге получали fatal error, т.к. в родителе метод protected
Так что пока удалили, скорее всего добавил getPluginInfo() или что-то типа того по аналогии с getSettings

Please sign in to comment.