mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
deduplicate proxy view operations
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user