thanks . i just checked and its line 97 to line 99 in the file on the host .
so just so i understand correctly
do i only replace this (which is line 98 and 99 )
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : (!empty($defaultAction) ? $defaultAction : array_pop(array_keys($subActions)));
$context['sub_action'] = $_REQUEST['sa'];
with this
$_REQUEST['sa'] = isset($_REQUEST['sa'], $subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : $defaultAction;
or do i have to replace the entire thing as in do i also include the // by default do the basic settings (see just below ) and replace that with the // if no fallback was specified , use the first subaction etc etc ?
// By default do the basic settings.
$_REQUEST['sa'] = isset($_REQUEST['sa']) && isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : (!empty($defaultAction) ? $defaultAction : array_pop(array_keys($subActions)));
$context['sub_action'] = $_REQUEST['sa'];
// If no fallback was specified, use the first subaction.
$defaultAction = !empty($defaultAction) ? $defaultAction : key($subActions);
// I want...
$_REQUEST['sa'] = isset($_REQUEST['sa'], $subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] : $defaultAction;
oh wait a tick the above is saying test successful , so what i thought was an error being shown to me is not ? is that correct ? . its got the edit option on the left but it is saying test successful , so can i assume from that that the above requires no change ? .
if so im back to the first error , this error does say test failed . its just a version number error
Code: (Find) [Select]
@version 2.0.6
Code: (Replace) [Select]
@version 2.0.14
aleksi the bit of code you posted in regard the version error just above is
<?php
/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines
http://www.simplemachines.org * @copyright 2011 Simple Machines
* @license
http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0.14
*/
if i had the above lines of code i could fix the error easily im sure . however on looking i seem to have quite different code , here is the code i have
<?php
/**********************************************************************************
* ManageSettings.php *
***********************************************************************************
* SMF: Simple Machines Forum *
* Open-Source Project Inspired by Zef Hemel (zef@zefhemel.com) *
* =============================================================================== *
* Software Version: SMF 2.0 RC1 *
* Software by: Simple Machines (
http://www.simplemachines.org) *
* Copyright 2006-2009 by: Simple Machines LLC (
http://www.simplemachines.org) *
* 2001-2006 by: Lewis Media (
http://www.lewismedia.com) *
* Support, News, Updates at:
http://www.simplemachines.org *
***********************************************************************************
* This program is free software; you may redistribute it and/or modify it under *
* the terms of the provided license as published by Simple Machines LLC. *
* *
* This program is distributed in the hope that it is and will be useful, but *
* WITHOUT ANY WARRANTIES; without even any implied warranty of MERCHANTABILITY *
* or FITNESS FOR A PARTICULAR PURPOSE. *
* *
* See the "license.txt" file for details of the Simple Machines license. *
* The latest version can always be found at
http://www.simplemachines.org. *
**********************************************************************************/
the above code is line number 1 to line number 23 . as you can see its different to the code you posted . thanks for your help so far