diff options
author | Aaron Parecki <aaron@parecki.com> | 2018-08-01 17:08:07 -0700 |
---|---|---|
committer | Aaron Parecki <aaron@parecki.com> | 2018-08-01 17:08:07 -0700 |
commit | 782780234a4d5eefc692b14b4a620fc24444f2db (patch) | |
tree | 70bf1014c799cf4b71ab596016c4482db919ef47 /controllers/controllers.php | |
parent | f860747857830229ecf0d3e309f6d49e131b7e30 (diff) |
improvements to login UI, upgrades libraries
makes the login experience a bit friendlier to non-developer users
Diffstat (limited to 'controllers/controllers.php')
-rw-r--r-- | controllers/controllers.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/controllers/controllers.php b/controllers/controllers.php index 237c4bb..cc74674 100644 --- a/controllers/controllers.php +++ b/controllers/controllers.php @@ -724,7 +724,7 @@ $app->get('/code', function() use($app) { 'nginx' => ['conf'], 'apache' => [], 'text' => ['txt'], - ]; + ]; ksort($languages); $language_map = []; foreach($languages as $lang=>$exts) { @@ -989,18 +989,18 @@ $app->get('/edit', function() use($app) { 'error' => 'There was a problem!', 'error_description' => $error ]); - return; + return; } // Until all interfaces are complete, show an error here for unsupported ones - if(!in_array($url, ['/favorite','/repost'])) { + if(!in_array($url, ['/favorite','/repost','/code'])) { render('edit/error', [ 'title' => 'Not Yet Supported', 'summary' => '', 'error' => 'Not Yet Supported', 'error_description' => 'Editing is not yet supported for this type of post.' ]); - return; + return; } $app->redirect($url . '?edit=' . $params['url'], 302); |