From b046a1087f4c1fa3e395aa0a4a4663733e0a916d Mon Sep 17 00:00:00 2001 From: Oshane Bailey Date: Sun, 14 Dec 2014 01:01:07 -0500 Subject: [PATCH] touc #27 - Added missing module notification. --- app/libs/vecni/Vecni.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/libs/vecni/Vecni.php b/app/libs/vecni/Vecni.php index c3e53e9..3b6b895 100755 --- a/app/libs/vecni/Vecni.php +++ b/app/libs/vecni/Vecni.php @@ -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 "

Missing plugin $missing_plugin.

"; ?>

Please run the following command in git bash.

git submodule update --init @@ -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{ @@ -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"); } } @@ -201,7 +203,7 @@ public static function use_less(){ chmod($css_file, 0777); return $less; }else{ - self::get_submodules(); + self::get_submodules("Less"); } } @@ -215,7 +217,7 @@ public static function email_loader(){ $mailer->WordWrap = 70; return $mailer; }else{ - self::get_submodules(); + self::get_submodules("PHPMailer"); } } @@ -385,3 +387,4 @@ public static function url_for($url_fn){ } } ?> +