Skip to content

Commit

Permalink
Merge pull request #2 from IntegReady/20170305-dev-Minor_fixes_1
Browse files Browse the repository at this point in the history
20170305 dev minor fixes 1
  • Loading branch information
Stern87 authored Mar 5, 2017
2 parents 85de32d + 17ffff1 commit 610c0b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CaptchaAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class CaptchaAction extends \yii\captcha\CaptchaAction
*/
public function init()
{
GlobalVar::$dirfonts = __DIR__ . '/fonts';
GlobalVar::$dirimg = __DIR__ . '/img';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions GlobalVar.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/
class GlobalVar
{
public static $dirfonts = __DIR__ . '/fonts';
public static $dirimg = __DIR__ . '/img'; // absolute path to the images directory
public static $dirfonts;
public static $dirimg; // absolute path to the images directory
public static $symboles = [
'~' => ' ',
'alpha' => '®',
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ The preferred way to install this extension is through [composer](http://getcomp
Either run

```
php composer.phar require --prefer-dist hreitsma/yii2-simplemath-captcha "dev-master"
php composer.phar require --prefer-dist integready/yii2-simplemath-captcha "dev-master"
```

or add

```
"hreitsma/yii2-simplemath-captcha": "dev-master"
"integready/yii2-simplemath-captcha": "dev-master"
```

to the require section of your `composer.json` file.
Expand All @@ -32,7 +32,7 @@ public function actions()
return [
...
'captcha' => [
'class' => 'hr\captcha\CaptchaAction',
'class' => 'integready\simplemathcaptcha\CaptchaAction',
'operators' => ['+','-','*'],
'maxValue' => 10,
'fontSize' => 18,
Expand Down

0 comments on commit 610c0b9

Please sign in to comment.