erik1234as / phpmobilizer

Automatically exported from code.google.com/p/phpmobilizer
0 stars 0 forks source link

Strict Standards: Only variables should be passed by reference in website.com/m/phpmobilizer.class.php on line 15 #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create the subdomain
2. load the files into m folder
3. insert - <?php require_once('m/mobilize.php'); ?> into the head section of 
the main site

What is the expected output? What do you see instead?

The expected action would be that the main site would not be getting a Strict 
Standards: Only variables should be passed by reference error, which is what I 
was getting.

What version of the product are you using? On what operating system?

Version - 1.0
Windows 7

Please provide any additional information below.

To correct this error change line 15 in the phpmobilizer.php file to:

        $urlParts = explode('.', $this->url);
        $this->ext = strtolower(end($urlParts));

Original issue reported on code.google.com by bryan7...@gmail.com on 28 Apr 2015 at 2:39