-
Notifications
You must be signed in to change notification settings - Fork 24
Update framework to v4.6.0 #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
4d55475
a2e4799
4a79f7b
4f7b7ec
6187eef
f695fa7
e37499e
8e76d72
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| ERROR DISPLAY | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -288,16 +288,16 @@ | |
* | ||
* @return list<string>|string|null | ||
*/ | ||
protected function parseVideoTags(?string $html = null) | ||
Check warning on line 291 in app/Libraries/Blog.php
|
||
{ | ||
helper('video'); | ||
|
||
// Since the plugin doesn't support video embeds, yet, | ||
// wire our own up. The syntax for video embeds is | ||
// ![[ https://youtube.com/watch?v=xlkjsdfhlk ]] | ||
preg_match_all('|!video\[([\s\w:/.?=&;]*)\]|i', $html, $matches); | ||
$result = preg_match_all('|!video\[([\s\w:/.?=&;]*)\]|i', $html, $matches); | ||
|
||
if ($matches === []) { | ||
if ($result === false || $result === 0) { | ||
Check warning on line 300 in app/Libraries/Blog.php
|
||
michalsn marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
return $html; | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title><?= lang('Errors.badRequest') ?></title> | ||
|
||
<style> | ||
div.logo { | ||
height: 200px; | ||
width: 155px; | ||
display: inline-block; | ||
opacity: 0.08; | ||
position: absolute; | ||
top: 2rem; | ||
left: 50%; | ||
margin-left: -73px; | ||
} | ||
body { | ||
height: 100%; | ||
background: #fafafa; | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
color: #777; | ||
font-weight: 300; | ||
} | ||
h1 { | ||
font-weight: lighter; | ||
letter-spacing: normal; | ||
font-size: 3rem; | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
color: #222; | ||
} | ||
.wrap { | ||
max-width: 1024px; | ||
margin: 5rem auto; | ||
padding: 2rem; | ||
background: #fff; | ||
text-align: center; | ||
border: 1px solid #efefef; | ||
border-radius: 0.5rem; | ||
position: relative; | ||
} | ||
pre { | ||
white-space: normal; | ||
margin-top: 1.5rem; | ||
} | ||
code { | ||
background: #fafafa; | ||
border: 1px solid #efefef; | ||
padding: 0.5rem 1rem; | ||
border-radius: 5px; | ||
display: block; | ||
} | ||
p { | ||
margin-top: 1.5rem; | ||
} | ||
.footer { | ||
margin-top: 2rem; | ||
border-top: 1px solid #efefef; | ||
padding: 1em 2em 0 2em; | ||
font-size: 85%; | ||
color: #999; | ||
} | ||
a:active, | ||
a:link, | ||
a:visited { | ||
color: #dd4814; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="wrap"> | ||
<h1>400</h1> | ||
|
||
<p> | ||
<?php if (ENVIRONMENT !== 'production') : ?> | ||
<?= nl2br(esc($message)) ?> | ||
<?php else : ?> | ||
<?= lang('Errors.sorryBadRequest') ?> | ||
<?php endif; ?> | ||
</p> | ||
</div> | ||
</body> | ||
</html> |
Uh oh!
There was an error while loading. Please reload this page.