Skip to content

Commit

Permalink
fix creating widgets folder
Browse files Browse the repository at this point in the history
  • Loading branch information
yllumi committed Oct 10, 2015
1 parent 9d3979c commit d88a128
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions system/application/modules/widgets/controllers/Panel.php
Expand Up @@ -10,6 +10,9 @@ function __construct()
if (!$this->logged_in()) redirect('panel/login');

$this->load->model('widgets/widgets_m');

if (!file_exists(WIDGET_FOLDER))
mkdir(WIDGET_FOLDER, 0777, true);

if (!is_readable(WIDGET_FOLDER) || !is_writable(WIDGET_FOLDER)) show_error('Set folder ' . WIDGET_FOLDER . ' and its contents readable and writable first.');
}
Expand Down
2 changes: 1 addition & 1 deletion system/application/modules/widgets/views/index.php
Expand Up @@ -43,7 +43,7 @@
<?php endforeach; ?>

<?php else: ?>
<p>There is no core widgets.</p>
<p>There is no widgets in this group.</p>
<?php endif; ?>

</div>
Expand Down
Empty file modified www/media/default/sitedata/content/widgets/nonarea/header.json 100644 → 100755
Empty file.
Empty file modified www/media/default/sitedata/content/widgets/nonarea/index.json 100644 → 100755
Empty file.
Empty file modified www/media/pusaka/sitedata/content/labels/index.md 100644 → 100755
Empty file.
Empty file modified www/media/pusaka/sitedata/content/labels/introduction.json 100644 → 100755
Empty file.
Empty file modified www/media/pusaka/sitedata/content/labels/pusakacms.json 100644 → 100755
Empty file.
12 changes: 6 additions & 6 deletions www/media/pusaka/sitedata/content/navs/sidebar.json
@@ -1,15 +1,15 @@
[
{
"title": "News",
"slug": "news",
"url": "news",
"title": "List",
"slug": "list",
"url": "sagala\/rupa",
"source": "uri",
"target": "_self",
"children": [
{
"title": "List",
"slug": "list",
"url": "sagala\/rupa",
"title": "News",
"slug": "news",
"url": "news",
"source": "uri",
"target": "_self"
}
Expand Down
Empty file modified www/media/pusaka/sitedata/content/pages/docs/index.md 100644 → 100755
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified www/media/pusaka/sitedata/content/pages/index.json 100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion www/media/pusaka/sitedata/db/Settings_system.json
Expand Up @@ -2,7 +2,7 @@
"theme": "keris",
"theme_option": "orange",
"admin_theme": "pusakapanel",
"post_as_home": "",
"post_as_home": "home",
"post_term": "blog",
"post_per_page": "10",
"disqus_shortname": "pusakacms",
Expand Down
2 changes: 1 addition & 1 deletion www/media/pusaka/sitedata/db/users.json
Expand Up @@ -11,7 +11,7 @@
"forgotten_password_time": null,
"remember_code": null,
"created_on": 1268889823,
"last_login": 1438664094,
"last_login": 1444461992,
"active": 1,
"groups": [
"1",
Expand Down

0 comments on commit d88a128

Please sign in to comment.