Skip to content

Commit

Permalink
Improve the Content module
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed Jan 4, 2020
1 parent f72ebf0 commit beade01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Platform/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// Define The Application Version
//--------------------------------------------------------------------------

define('VERSION', '1.1.12');
define('VERSION', '1.1.13');

//--------------------------------------------------------------------------
// Set PHP Error Reporting Options
Expand Down
9 changes: 3 additions & 6 deletions modules/Content/Controllers/Admin/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function index(Request $request, $slug)

public function create(Request $request, $type)
{
$authUser = Auth::user();
$authUser = $lastEditor = Auth::user();

$postType = PostType::make($type);

Expand All @@ -100,9 +100,9 @@ public function create(Request $request, $type)
'comment_status' => ($type == 'post') ? 'open' : 'closed',
));

$post->name = $slug = $post->id;
$post->name = $postId = $post->id;

$post->guid = site_url($slug);
$post->guid = site_url('content/' .$postId);

// Save the Post again, to update its name.
$post->save();
Expand Down Expand Up @@ -139,9 +139,6 @@ public function create(Request $request, $type)
// Revisions.
$revisions = $post->newCollection();

// The last editor.
$lastEditor = $authUser;

// Compute the stylesheets needed to be loaded in editor.
$stylesheets = $this->getDefaultThemeStylesheets();

Expand Down

0 comments on commit beade01

Please sign in to comment.