diff --git a/e107_handlers/e107Url.php b/e107_handlers/e107Url.php index 64f0d7554..bba0be698 100755 --- a/e107_handlers/e107Url.php +++ b/e107_handlers/e107Url.php @@ -2,7 +2,7 @@ /* * e107 website system * - * Copyright (C) 2008-2011 e107 Inc (e107.org) + * Copyright (C) 2008-2012 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * @@ -74,5 +74,21 @@ class eUrl { return $this->_front; } + + /** + * @return eResponse + */ + public function response() + { + return $this->_front->getResponse(); + } + + /** + * @return eRequest + */ + public function request() + { + return $this->_front->getRequest(); + } } diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index d000250fb..9aa571d36 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -1361,6 +1361,15 @@ class e107 } return self::getObject('e_jshelper', null, true); } + + /** + * @see eResponse::addMeta() + * @return eResponse + */ + public static function meta($name = null, $content = null, $extended = array()) + { + return e107::getUrl()->response()->addMeta($name, $content, $extended); + } /** * Retrieve admin dispatcher instance.