Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
00b403fc
Commit
00b403fc
authored
Jan 01, 2014
by
Klimov Paul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:yiisoft/yii2
parents
a4f8ce6b
4a11e6f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BaseImage.php
extensions/yii/imagine/BaseImage.php
+6
-6
No files found.
extensions/yii/imagine/BaseImage.php
View file @
00b403fc
...
@@ -59,10 +59,10 @@ class BaseImage
...
@@ -59,10 +59,10 @@ class BaseImage
*/
*/
public
static
function
getImagine
()
public
static
function
getImagine
()
{
{
if
(
s
tatic
::
$_imagine
===
null
)
{
if
(
s
elf
::
$_imagine
===
null
)
{
s
tatic
::
$_imagine
=
static
::
createImagine
();
s
elf
::
$_imagine
=
static
::
createImagine
();
}
}
return
s
tatic
::
$_imagine
;
return
s
elf
::
$_imagine
;
}
}
/**
/**
...
@@ -70,7 +70,7 @@ class BaseImage
...
@@ -70,7 +70,7 @@ class BaseImage
*/
*/
public
static
function
setImagine
(
$imagine
)
public
static
function
setImagine
(
$imagine
)
{
{
s
tatic
::
$_imagine
=
$imagine
;
s
elf
::
$_imagine
=
$imagine
;
}
}
/**
/**
...
@@ -88,12 +88,12 @@ class BaseImage
...
@@ -88,12 +88,12 @@ class BaseImage
}
}
break
;
break
;
case
self
::
DRIVER_IMAGICK
:
case
self
::
DRIVER_IMAGICK
:
if
(
!
class_exists
(
'Imagick'
,
false
))
{
if
(
class_exists
(
'Imagick'
,
false
))
{
return
new
\Imagine\Imagick\Imagine
();
return
new
\Imagine\Imagick\Imagine
();
}
}
break
;
break
;
case
self
::
DRIVER_GD2
:
case
self
::
DRIVER_GD2
:
if
(
!
function_exists
(
'gd_info'
))
{
if
(
function_exists
(
'gd_info'
))
{
return
new
\Imagine\Gd\Imagine
();
return
new
\Imagine\Gd\Imagine
();
}
}
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment