File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 2222use function array_pop ;
2323use function array_values ;
2424use function count ;
25+ use function boolval ;
2526use function file_get_contents ;
27+ use function ini_get ;
2628use function is_array ;
2729use function sprintf ;
2830use function str_replace ;
@@ -243,7 +245,7 @@ private function getHostedIdP(): array
243245 );
244246 $ entities [$ index ] = $ entity ;
245247 }
246- } catch (\ Exception $ e ) {
248+ } catch (Exception $ e ) {
247249 Logger::error ('Federation: Error loading saml20-idp: ' . $ e ->getMessage ());
248250 }
249251 }
@@ -300,7 +302,7 @@ private function getHostedIdP(): array
300302 );
301303 $ entities [$ index ] = $ entity ;
302304 }
303- } catch (\ Exception $ e ) {
305+ } catch (Exception $ e ) {
304306 Logger::error ('Federation: Error loading adfs-idp: ' . $ e ->getMessage ());
305307 }
306308 }
@@ -477,6 +479,7 @@ public function metadataConverter(Request $request): Response
477479 'xmldata ' => $ xmldata ,
478480 'output ' => $ output ,
479481 'error ' => $ error ,
482+ 'upload ' => boolval (ini_get ('file_upload ' )),
480483 ];
481484
482485 $ this ->menu ->addOption ('logout ' , $ t ->data ['logouturl ' ], Translate::noop ('Log out ' ));
Original file line number Diff line number Diff line change 1414 </div >
1515 <br >
1616 <div class =" center" >
17+ {% if upload %}
1718 <div class =" pure-button-group two-elements" role =" group" >
1819 <label class =" pure-button" >
1920 <span class =" fa fa-folder-open" ></span >{{ ' or select a file:' | trans }}
2223 <label id =" show-file" class =" pure-button hollow show-files" disabled >{{ ' No file selected.' | trans }}</label >
2324 </div >
2425 <br >
26+ {% endif %}
2527 <button class =" pure-button pure-button-red pure-input-1-3" >{{ ' Parse' | trans }}</button >
2628 </div >
2729 </form >
You can’t perform that action at this time.
0 commit comments