diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index 8082133cd4..d1af382bf6 100755 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -767,6 +767,19 @@ public function addMetaTitle($title) return $this; } + /** + * Set the Meta-title (overrides existing) + * @param string $title + * @return e_admin_response + */ + public function setMetaTitle($title) + { + $meta = '_e_PAGETITLE'; + $this->{$meta} = array(strip_tags($title)); + + return $this; + } + /** * Add meta description segment * @@ -1789,6 +1802,8 @@ class e_admin_controller */ protected $disallow = array(); + + /** * Constructor * @param e_admin_request $request @@ -3560,7 +3575,7 @@ public function getConfig() */ public function setConfig($config) { - $this->_prefs = $config; + $this->_prefs = $config; // XXX Discuss. return $this; } @@ -7756,7 +7771,7 @@ public function renderFilter($current_query = array(), $location = '', $input_op ' .$this->select_close()."
".implode("\n", $filter_preserve_var). ' - ' .$this->admin_button('etrigger_filter', 'etrigger_filter', 'filter e-hide-if-js', ADMIN_FILTER_ICON, array('id' => false, 'title' =>LAN_FILTER, 'loading' => false)). ' + ' .$this->admin_button('etrigger_filter', 'etrigger_filter', 'filter e-hide-if-js', defset('ADMIN_FILTER_ICON'), array('id' => false, 'title' =>LAN_FILTER, 'loading' => false)). ' ' .$this->renderPagination()." ".$gridToggle." diff --git a/e107_tests/tests/unit/e_admin_controller_uiTest.php b/e107_tests/tests/unit/e_admin_controller_uiTest.php index cd70e5472c..1671f41c52 100644 --- a/e107_tests/tests/unit/e_admin_controller_uiTest.php +++ b/e107_tests/tests/unit/e_admin_controller_uiTest.php @@ -24,7 +24,7 @@ protected function _before() } catch(Exception $e) { - $this->assertTrue(false, "Couldn't load e_admin_controller_ui object"); + $this->fail("Couldn't load e_admin_controller_ui object"); } } @@ -220,12 +220,13 @@ public function testGetPrefs() { } - - public function testGetConfig() +*/ +/* public function testGetConfig() { + $result = $this->ui->getConfig(); - } - + }*/ +/* public function testGetBatchExport() { @@ -380,13 +381,22 @@ public function testSetUserPref() { } - + */ + /* public function testSetConfig() { + $cfg = e107::getConfig(); + $before = $cfg->get('sitename'); + $this->ui->setConfig($cfg); - } + $pref = $this->ui->getConfig(); + $after = $pref->get('sitename'); + + $this->assertSame($after, $before); + } */ + }