From e4676cd4d9ad48c4170373faf9955b16fbdd3065 Mon Sep 17 00:00:00 2001 From: Nadim Tuhin Date: Fri, 11 Sep 2015 22:15:39 +0600 Subject: [PATCH] fixed bug undefined layoutManager #61 --- app/Onepager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Onepager.php b/app/Onepager.php index 02a7267..91cf6eb 100644 --- a/app/Onepager.php +++ b/app/Onepager.php @@ -41,7 +41,7 @@ public static function disableCoreBlocks() // Register Preset Paths public static function registerPresets( $folder = 'presets') { - onepager()->layoutManager()->loadAllFromPath( + onepager()->presetManager()->loadAllFromPath( get_template_directory() . '/' . $folder, get_template_directory_uri() . '/' . $folder, "onepager" @@ -51,7 +51,7 @@ public static function registerPresets( $folder = 'presets') // Disable Any Presets Group public static function disablePresets($groups) { - onepager()->layoutManager()->setIgnoredGroups($groups); + onepager()->presetManager()->setIgnoredGroups($groups); } // Disable core presets