mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-04-19 21:58:08 -04:00
deduplicate proxy view operations
This commit is contained in:
+1
-6
@@ -455,12 +455,7 @@ class Controller
|
|||||||
$page->assign('CSPHEADER', $metacspheader);
|
$page->assign('CSPHEADER', $metacspheader);
|
||||||
$page->assign('ERROR', I18n::_($this->_error));
|
$page->assign('ERROR', I18n::_($this->_error));
|
||||||
$page->assign('NAME', $this->_conf->getKey('name'));
|
$page->assign('NAME', $this->_conf->getKey('name'));
|
||||||
if ($this->_request->getOperation() === 'yourlsproxy') {
|
if (in_array($this->_request->getOperation(), array('shlinkproxy', 'yourlsproxy'), true)) {
|
||||||
$page->assign('SHORTURL', $this->_status);
|
|
||||||
$page->draw('shortenerproxy');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ($this->_request->getOperation() === 'shlinkproxy') {
|
|
||||||
$page->assign('SHORTURL', $this->_status);
|
$page->assign('SHORTURL', $this->_status);
|
||||||
$page->draw('shortenerproxy');
|
$page->draw('shortenerproxy');
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user