Skip to content

Commit

Permalink
Merge pull request #29 from b4oshany/production
Browse files Browse the repository at this point in the history
touc #27 - Added missing module notification.
  • Loading branch information
b4oshany committed Dec 14, 2014
2 parents 3cf4d99 + b046a10 commit f753889
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/libs/vecni/Vecni.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,10 @@ public static function in_development(){
return false;
}

public static function get_submodules(){
public static function get_submodules($missing_plugin=""){
$req_copy = self::getRootFolder().'app/configs/hooks into '.self::getRootFolder().'git/hooks/';
if(!empty($missing_plugin))
echo "<p>Missing plugin $missing_plugin.<p>";
?>
<h3>Please run the following command in git bash.</h3>
<code> git submodule update --init</code>
Expand All @@ -139,7 +141,7 @@ public static function enable_error_reporting($display_error = true, $override_d
require_once $php_error_file;
\php_error\reportErrors();
}else{
self::get_submodules();
self::get_submodules("PHPError");
}
ini_set('html_errors',1);
}else{
Expand Down Expand Up @@ -170,7 +172,7 @@ public static function twig_loader(){
#allow call to static functions.
self::$twig->addFunction('staticCall', new \Twig_Function_Function('staticCall'));
}else{
self::get_submodules();
self::get_submodules("Twig");
}
}

Expand Down Expand Up @@ -201,7 +203,7 @@ public static function use_less(){
chmod($css_file, 0777);
return $less;
}else{
self::get_submodules();
self::get_submodules("Less");
}
}

Expand All @@ -215,7 +217,7 @@ public static function email_loader(){
$mailer->WordWrap = 70;
return $mailer;
}else{
self::get_submodules();
self::get_submodules("PHPMailer");
}
}

Expand Down Expand Up @@ -385,3 +387,4 @@ public static function url_for($url_fn){
}
}
?>

0 comments on commit f753889

Please sign in to comment.