mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Remove ambiguity around what classes are being used
Fixes https://github.com/octobercms/october/issues/3184.
This commit is contained in:
parent
a62a6e6493
commit
d292eeb85e
@ -4,7 +4,6 @@ use Url;
|
||||
use Str;
|
||||
use Lang;
|
||||
use File;
|
||||
use Form;
|
||||
use Input;
|
||||
use Config;
|
||||
use Request;
|
||||
@ -500,7 +499,7 @@ class MediaManager extends WidgetBase
|
||||
{
|
||||
$path = Input::get('path');
|
||||
$path = MediaLibrary::validatePath($path);
|
||||
$cropSessionKey = md5(Form::getSessionKey());
|
||||
$cropSessionKey = md5(\Form::getSessionKey());
|
||||
$selectionParams = $this->getSelectionParams();
|
||||
|
||||
$urlAndSize = $this->getCropEditImageUrlAndSize($path, $cropSessionKey);
|
||||
|
@ -3,7 +3,6 @@
|
||||
use App;
|
||||
use Url;
|
||||
use Str;
|
||||
use File;
|
||||
use Lang;
|
||||
use Model;
|
||||
use Cache;
|
||||
@ -152,7 +151,7 @@ class MailBrandSetting extends Model
|
||||
|
||||
$parser->ModifyVars(static::makeCssVars());
|
||||
|
||||
$parser->parse(File::get($basePath . '/custom.less'));
|
||||
$parser->parse(\File::get($basePath . '/custom.less'));
|
||||
|
||||
$css = $parser->getCss();
|
||||
|
||||
|
@ -1,6 +1,5 @@
|
||||
<?php namespace System\Models;
|
||||
|
||||
use File;
|
||||
use View;
|
||||
use Model;
|
||||
use System\Classes\MailManager;
|
||||
@ -132,6 +131,6 @@ class MailLayout extends Model
|
||||
|
||||
protected static function getTemplateSections($code)
|
||||
{
|
||||
return MailParser::parse(File::get(View::make($code)->getPath()));
|
||||
return MailParser::parse(\File::get(View::make($code)->getPath()));
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php namespace System\Models;
|
||||
|
||||
use Twig;
|
||||
use File;
|
||||
use View;
|
||||
use Model;
|
||||
use Markdown;
|
||||
@ -116,6 +115,6 @@ class MailPartial extends Model
|
||||
|
||||
protected static function getTemplateSections($code)
|
||||
{
|
||||
return MailParser::parse(File::get(View::make($code)->getPath()));
|
||||
return MailParser::parse(\File::get(View::make($code)->getPath()));
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,6 @@
|
||||
<?php namespace System\Models;
|
||||
|
||||
use App;
|
||||
use File;
|
||||
use View;
|
||||
use Model;
|
||||
use System\Classes\MailManager;
|
||||
@ -147,7 +146,7 @@ class MailTemplate extends Model
|
||||
|
||||
protected static function getTemplateSections($code)
|
||||
{
|
||||
return MailParser::parse(File::get(View::make($code)->getPath()));
|
||||
return MailParser::parse(\File::get(View::make($code)->getPath()));
|
||||
}
|
||||
|
||||
public static function findOrMakeTemplate($code)
|
||||
|
Loading…
x
Reference in New Issue
Block a user