@@ -836,20 +836,20 @@ function getapacheversion($get_minor = false) {
836836 if (is_installed ('apache2ctl ' )) $ cmd = 'apache2ctl -v ' ;
837837 elseif (is_installed ('apachectl ' )) $ cmd = 'apachectl -v ' ;
838838 else {
839- $ app -> log ("Could not check apache version, apachectl not found. " , LOGLEVEL_WARN );
839+ ilog ("Could not check apache version, apachectl not found. " );
840840 return '2.2 ' ;
841841 }
842842
843843 exec ($ cmd , $ output , $ return_var );
844844 if ($ return_var != 0 || !$ output [0 ]) {
845- $ app -> log ("Could not check apache version, apachectl did not return any data. " , LOGLEVEL_WARN );
845+ ilog ("Could not check apache version, apachectl did not return any data. " );
846846 return '2.2 ' ;
847847 }
848848
849849 if (preg_match ('/version:\s*Apache\/(\d+)(\.(\d+)(\.(\d+))*)?(\D|$)/i ' , $ output [0 ], $ matches )) {
850850 return $ matches [1 ] . (isset ($ matches [3 ]) ? '. ' . $ matches [3 ] : '' ) . (isset ($ matches [5 ]) && $ get_minor == true ? '. ' . $ matches [5 ] : '' );
851851 } else {
852- $ app -> log ("Could not check apache version, did not find version string in apachectl output. " , LOGLEVEL_WARN );
852+ ilog ("Could not check apache version, did not find version string in apachectl output. " );
853853 return '2.2 ' ;
854854 }
855855}
@@ -861,13 +861,13 @@ function getapachemodules() {
861861 if (is_installed ('apache2ctl ' )) $ cmd = 'apache2ctl -t -D DUMP_MODULES ' ;
862862 elseif (is_installed ('apachectl ' )) $ cmd = 'apachectl -t -D DUMP_MODULES ' ;
863863 else {
864- $ app -> log ("Could not check apache modules, apachectl not found. " , LOGLEVEL_WARN );
864+ ilog ("Could not check apache modules, apachectl not found. " );
865865 return array ();
866866 }
867867
868868 exec ($ cmd . ' 2>/dev/null ' , $ output , $ return_var );
869869 if ($ return_var != 0 || !$ output [0 ]) {
870- $ app -> log ("Could not check apache modules, apachectl did not return any data. " , LOGLEVEL_WARN );
870+ ilog ("Could not check apache modules, apachectl did not return any data. " );
871871 return array ();
872872 }
873873
0 commit comments