Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #1 crashed caused by the zend framework and the include path
- Loading branch information
1 parent
1d943f3
commit 2f7ff4f
Showing
1 changed file
with
23 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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')); | ||
?> |