Skip to content

Commit

Permalink
fixed bug undefined layoutManager #61
Browse files Browse the repository at this point in the history
  • Loading branch information
nadimtuhin committed Sep 11, 2015
1 parent acb90ee commit e4676cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Onepager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit e4676cd

Please sign in to comment.