mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-10-03 09:49:14 +02:00
deduplicate proxy view operations
This commit is contained in:
parent
5cc66bb29b
commit
5cc963be1b
1 changed files with 1 additions and 6 deletions
|
@ -455,12 +455,7 @@ class Controller
|
|||
$page->assign('CSPHEADER', $metacspheader);
|
||||
$page->assign('ERROR', I18n::_($this->_error));
|
||||
$page->assign('NAME', $this->_conf->getKey('name'));
|
||||
if ($this->_request->getOperation() === 'yourlsproxy') {
|
||||
$page->assign('SHORTURL', $this->_status);
|
||||
$page->draw('shortenerproxy');
|
||||
return;
|
||||
}
|
||||
if ($this->_request->getOperation() === 'shlinkproxy') {
|
||||
if (in_array($this->_request->getOperation(), array('shlinkproxy', 'yourlsproxy'), true)) {
|
||||
$page->assign('SHORTURL', $this->_status);
|
||||
$page->draw('shortenerproxy');
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue