Skip to content

armgit / Vvveb

Public Imported from GitHub
0

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

Added slug and name to order by list

givanze7ed8a3f209d
diff --git a/app/component/posts.php b/app/component/posts.php
index fbe0350..ee3bca8 100755
--- a/app/component/posts.php
+++ b/app/component/posts.php
@@ -105,7 +105,7 @@ class Posts extends ComponentBase {
}
if (isset($this->options['order_by']) &&
- ! in_array($this->options['order_by'], ['post_id', 'admin_id', 'sort_order', 'parent', 'type', 'created_at', 'updated_at'])) {
+ ! in_array($this->options['order_by'], ['post_id', 'admin_id', 'sort_order', 'parent', 'type', 'created_at', 'updated_at', 'slug', 'name'])) {
unset($this->options['order_by']);
}