Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Checks if Magento has compiled files
- * @return boolean true if any compiled files are found
- */
- public function isCompiled()
- {
- if (!Mage::helper('wf_customerbalance/version')->isBaseMageVersionAtLeast('1.4')) {
- return false;
- }
- $compiler = Mage::getModel('compiler/process');
- if(!$compiler) {
- return false;
- }
- if($compiler->getCollectedFilesCount() == 0) {
- return false;
- }
- return true;
- }
- /**
- * Chekcs if the Magento compilation is enabled.
- * @return boolean true if the Mangento compilation mode (compiler) is enabled
- */
- public function isCompilationEnabled()
- {
- if (!defined('COMPILER_INCLUDE_PATH')) {
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement