Skip to content

Commit

Permalink
Permission settings removed, control this manually!
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Ek committed Jan 19, 2016
1 parent 6892359 commit e3939c7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bladerunner.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Bladerunner
Plugin URI: http://bladerunner.aekab.se
Description: Laravel Blade template engine for WordPress
Version: 1.0.2
Version: 1.0.3
Author: Andreas Ek
Author URI: http://www.aekab.se/
License: MIT License
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ekandreas/bladerunner",
"type": "wordpress-plugin",
"version": "1.0.2",
"version": "1.0.3",
"description": "WordPress Blade L5 template engine",
"keywords": ["laravel", "blade", "wordpress"],
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: ekandreas
Tags: Blade,templates,development,laravel
Requires at least: 4.4
Tested up to: 4.4
Stable tag: 1.0.2
Stable tag: 1.0.3
License: MIT

WordPress plugin for Blade L5 templating
Expand Down
6 changes: 3 additions & 3 deletions src/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public static function path()
{
$result = wp_upload_dir()['basedir'];
$result .= '/.cache';

$result = realpath($result);
return apply_filters('bladerunner/cache_path', $result);
}

Expand All @@ -55,7 +55,7 @@ public static function removeAllViews()
{
$dir = Cache::path();

Cache::setPermissions();
//Cache::setPermissions();

array_map('unlink', glob($dir."/*.php"));
}
Expand All @@ -75,7 +75,7 @@ public static function setPermissions()

public static function storeTemplate($view, $content)
{
$dir = realpath(Cache::path());
$dir = Cache::path();
try {
if (!file_put_contents($dir.'/'.$view.'.php', $content)) {
throw new \Exception("Bladerunner: Can't write to cache folder $dir when creating Blade template ($view)");
Expand Down

0 comments on commit e3939c7

Please sign in to comment.