Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Changed news url and added event to allow plugin url change

givanz373cc0c0656a
diff --git a/admin/component/news.php b/admin/component/news.php
index 905d75a..409c463 100755
--- a/admin/component/news.php
+++ b/admin/component/news.php
@@ -28,7 +28,7 @@ use Vvveb\System\Event;
use Vvveb\System\Import\Rss;
class News extends ComponentBase {
- protected $domain = 'https://www.vvveb.com';
+ protected $domain = 'https://blog.vvveb.com';
protected $url = '/feed/news';
@@ -61,7 +61,8 @@ class News extends ComponentBase {
}
function results() {
- // return [];
+ list($this->domain, $this->url) = Event::trigger(__CLASS__, 'url', $this->domain, $this->url);
+
$cache = Cache::getInstance();
// check for news ~twice a week
$news = $cache->cache('vvveb', 'news', function () {