Skip to content

Commit

Permalink
Fixed issue #1 crashed caused by the zend framework and the include path
Browse files Browse the repository at this point in the history
  • Loading branch information
UndefinedOffset committed Mar 8, 2014
1 parent 1d943f3 commit 2f7ff4f
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions _config.php
@@ -1,20 +1,24 @@
<?php
define('CB_BUILD_DATE', '@@BUILD_DATE@@');
define('CB_VERSION', '@@VERSION@@');
define('CB_DIR', basename(dirname(__FILE__)));


//CMS Menu
CMSMenu::remove_menu_item('CodeBankAddSnippet');
CMSMenu::remove_menu_item('CodeBankEditSnippet');
CMSMenu::remove_menu_item('CodeBankSettings');
CMSMenu::remove_menu_item('CodeBankIPAgreement');


//Inject Menu Styles
LeftAndMain::require_css(CB_DIR.'/css/CodeBankMenu.css');


//Register Short Code
ShortcodeParser::get_active()->register('snippet', array('CodeBankShortCode', 'parse'));
<?php
define('CB_BUILD_DATE', '@@BUILD_DATE@@');
define('CB_VERSION', '@@VERSION@@');
define('CB_DIR', basename(dirname(__FILE__)));


//Add the include path for the thirdparty folder (fixes zend api's)
set_include_path(get_include_path().PATH_SEPARATOR.dirname(__FILE__).'/thirdparty/');


//CMS Menu
CMSMenu::remove_menu_item('CodeBankAddSnippet');
CMSMenu::remove_menu_item('CodeBankEditSnippet');
CMSMenu::remove_menu_item('CodeBankSettings');
CMSMenu::remove_menu_item('CodeBankIPAgreement');


//Inject Menu Styles
LeftAndMain::require_css(CB_DIR.'/css/CodeBankMenu.css');


//Register Short Code
ShortcodeParser::get_active()->register('snippet', array('CodeBankShortCode', 'parse'));
?>

0 comments on commit 2f7ff4f

Please sign in to comment.