mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-25 04:09:11 -04:00
ALPHA 3.0.2a
This commit is contained in:
@@ -18,7 +18,7 @@ trait CompilesTranslations
|
||||
return "<?php \$__env->startTranslation{$expression}; ?>";
|
||||
}
|
||||
|
||||
return "<?php echo app('translator')->getFromJson{$expression}; ?>";
|
||||
return "<?php echo e(app('translator')->getFromJson{$expression}); ?>";
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,7 +28,7 @@ trait CompilesTranslations
|
||||
*/
|
||||
protected function compileEndlang()
|
||||
{
|
||||
return '<?php echo $__env->renderTranslation(); ?>';
|
||||
return '<?php echo e($__env->renderTranslation()); ?>';
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,6 +39,6 @@ trait CompilesTranslations
|
||||
*/
|
||||
protected function compileChoice($expression)
|
||||
{
|
||||
return "<?php echo app('translator')->choice{$expression}; ?>";
|
||||
return "<?php echo e(app('translator')->choice{$expression}); ?>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ trait ManagesComponents
|
||||
*/
|
||||
public function slot($name, $content = null)
|
||||
{
|
||||
if (count(func_get_args()) === 2) {
|
||||
if (func_num_args() === 2) {
|
||||
$this->slots[$this->currentComponent()][$name] = $content;
|
||||
} else {
|
||||
if (ob_start()) {
|
||||
|
||||
@@ -145,6 +145,8 @@ class Factory implements FactoryContract
|
||||
* @param array $data
|
||||
* @param array $mergeData
|
||||
* @return \Illuminate\Contracts\View\View
|
||||
*
|
||||
* @throws \InvalidArgumentException
|
||||
*/
|
||||
public function first(array $views, $data = [], $mergeData = [])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user