Skip to content

Commit 7328b11

Browse files
committed
Fixed a couple issues with the view bootstrapping.
Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
1 parent f6f275d commit 7328b11

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

bootstrap/views.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php namespace Feather;
22

3+
use URI;
4+
use URL;
35
use Str;
46
use HTML;
57
use View;
@@ -191,7 +193,7 @@
191193
preg_match('/(\d+)-.*?/', $uri, $matches);
192194

193195
// If the user cannot start discussions on the selected place, don't show the button.
194-
if($feather['auth']->cannot('start: discussions', Feather\Models\Place::find(array_pop($matches))))
196+
if($feather['auth']->cannot('start: discussions', Core\Place::find(array_pop($matches))))
195197
{
196198
return null;
197199
}

0 commit comments

Comments
 (0)