aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-22 02:04:55 -0800
committerfriendica <info@friendica.com>2013-12-22 02:04:55 -0800
commit0366991b45a9b54da66850bce44b4b9dc1d939a7 (patch)
tree0c84ba2b23587a1296189e2e789328aef600164e
parentd32bbaf599c77aa415ee403a896b77f091f0e9fc (diff)
downloadvolse-hubzilla-0366991b45a9b54da66850bce44b4b9dc1d939a7.tar.gz
volse-hubzilla-0366991b45a9b54da66850bce44b4b9dc1d939a7.tar.bz2
volse-hubzilla-0366991b45a9b54da66850bce44b4b9dc1d939a7.zip
appears that I missed a few files for Comanchification. so here's mitem.
-rw-r--r--include/widgets.php9
-rw-r--r--mod/mitem.php5
-rw-r--r--version.inc2
-rw-r--r--view/pdl/mod_mitem.pdl4
4 files changed, 14 insertions, 6 deletions
diff --git a/include/widgets.php b/include/widgets.php
index d6ef9ec07..a1ff756ff 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -567,4 +567,11 @@ function widget_dirsort($arr) {
function widget_dirtags($arr) {
return dir_tagblock(z_root() . '/directory',null);
-} \ No newline at end of file
+}
+
+function widget_menu_preview($arr) {
+ if(! get_app()->data['menu_item'])
+ return;
+ require_once('include/menu.php');
+ return menu_render(get_app()->data['menu_item']);
+}
diff --git a/mod/mitem.php b/mod/mitem.php
index 8e60e2d65..e0aa1b87a 100644
--- a/mod/mitem.php
+++ b/mod/mitem.php
@@ -81,11 +81,8 @@ function mitem_content(&$a) {
$channel = $a->get_channel();
- $a->set_widget('design',design_tools());
-
-
$m = menu_fetch($a->data['menu']['menu_name'],local_user(), get_observer_hash());
- $a->set_widget('menu_preview',menu_render($m));
+ $a->data['menu_item'] = $m;
if(argc() == 2) {
diff --git a/version.inc b/version.inc
index 72c1cfa54..4aa1ec592 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2013-12-21.533
+2013-12-22.534
diff --git a/view/pdl/mod_mitem.pdl b/view/pdl/mod_mitem.pdl
new file mode 100644
index 000000000..c210606d0
--- /dev/null
+++ b/view/pdl/mod_mitem.pdl
@@ -0,0 +1,4 @@
+[region=aside]
+[widget=design_tools][/widget]
+[widget=menu_preview][/widget]
+[/region] \ No newline at end of file